-
Notifications
You must be signed in to change notification settings - Fork 956
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make buffer_map and buffer_unmap check for device validity, add tests. (
#4212) * Make buffer_unmap check for device validity, add tests. This patch makes buffer_unmap check for a valid device, and corrects buffer_map to return the appropriate error for an invalid device. Tests are added for both operations. It also adds device validity checks to device_maintain_ids and to the functions that get and set buffer sub data. * Update changelog and test comment. * Run rustfmt. * Update test device_lose_then_more to specify more buffer usages to keep Vulkan happy.
- Loading branch information
Showing
3 changed files
with
42 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters