diff options
Diffstat (limited to 'include/vulkan/vulkan_shared.hpp')
-rw-r--r-- | include/vulkan/vulkan_shared.hpp | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/include/vulkan/vulkan_shared.hpp b/include/vulkan/vulkan_shared.hpp index 1bff517..fbb871b 100644 --- a/include/vulkan/vulkan_shared.hpp +++ b/include/vulkan/vulkan_shared.hpp @@ -8,9 +8,12 @@ #ifndef VULKAN_SHARED_HPP #define VULKAN_SHARED_HPP -#include <atomic> // std::atomic_size_t #include <vulkan/vulkan.hpp> +#if !( defined( VULKAN_HPP_ENABLE_STD_MODULE ) && defined( VULKAN_HPP_STD_MODULE ) ) +# include <atomic> // std::atomic_size_t +#endif + namespace VULKAN_HPP_NAMESPACE { #if !defined( VULKAN_HPP_NO_SMART_HANDLE ) @@ -971,6 +974,27 @@ namespace VULKAN_HPP_NAMESPACE using SharedPipelineBinaryKHR = SharedHandle<PipelineBinaryKHR>; + //=== VK_EXT_device_generated_commands === + template <> + class SharedHandleTraits<IndirectCommandsLayoutEXT> + { + public: + using DestructorType = Device; + using deleter = ObjectDestroyShared<IndirectCommandsLayoutEXT>; + }; + + using SharedIndirectCommandsLayoutEXT = SharedHandle<IndirectCommandsLayoutEXT>; + + template <> + class SharedHandleTraits<IndirectExecutionSetEXT> + { + public: + using DestructorType = Device; + using deleter = ObjectDestroyShared<IndirectExecutionSetEXT>; + }; + + using SharedIndirectExecutionSetEXT = SharedHandle<IndirectExecutionSetEXT>; + enum class SwapchainOwns { no, |