-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
d3d12: Remove now-unneeded unsafe
Send
/Sync
markers for `Allocati…
…on` and `MemoryBlock` (#152) Thanks to windows-rs implementing these unsafe markers for COM objects because they are [declared `agile`] (and wrapping the raw pointers in the first place, which are not marked `Send`/`Sync` by the Rust language) we can now let the compiler auto-implement the marker traits. This'll benefit safety (the traits require `unsafe` for a reason) in case we add fields to these structs that aren't `Send`/`Sync` in the future. The same should be done for Vulkan at some point, by manually defining `Send`+`Sync` wrapper types around affected fields. Also clear out `MemoryType`'s `Debug` implementation which is already implemented by windows-rs. [declared `agile`]: microsoft/win32metadata#740
- Loading branch information
Showing
2 changed files
with
2 additions
and
37 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