-
Hello, Also, why do they implement Send and Sync traits? The spec says the access to VkDevice must be externally synchronized. Am I missing something? Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
In Vulkan spec chapter |
Beta Was this translation helpful? Give feedback.
ash::vk::Device
is just 64-bit Vulkan handle;ash::Device
isash::vk::Device
plus addresses of loaded functions.In Vulkan spec chapter
Threading Behavior
you can see that in Vulkan only parameters of some functions must be externally synchronized. ForVkDevice
it is onlyvkDestroyDevice
and while usingash
you must do this synchronization yourself, e.g. just createimpl Drop
for your device wrapper (which also can implementSend
andSync
).