-
|
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::Deviceis just 64-bit Vulkan handle;ash::Deviceisash::vk::Deviceplus addresses of loaded functions.In Vulkan spec chapter
Threading Behavioryou can see that in Vulkan only parameters of some functions must be externally synchronized. ForVkDeviceit is onlyvkDestroyDeviceand while usingashyou must do this synchronization yourself, e.g. just createimpl Dropfor your device wrapper (which also can implementSendandSync).