aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/vulkan/vulkan_shared.hpp
diff options
context:
space:
mode:
authorJon Leech <[email protected]>2023-10-20 03:59:17 -0700
committerJon Leech <[email protected]>2023-10-20 04:02:25 -0700
commit374f9fd97520f6dd1b80745de09208d878ab4a52 (patch)
tree090c57a188d4909c09d19270bacf8a6deee4b90e /include/vulkan/vulkan_shared.hpp
parentf4bfcd885214675a6a0d7d4df07f52b511e6ea16 (diff)
downloadVulkan-Headers-374f9fd97520f6dd1b80745de09208d878ab4a52.tar.gz
Vulkan-Headers-374f9fd97520f6dd1b80745de09208d878ab4a52.zip
Update for Vulkan-Docs 1.3.269v1.3.269
Diffstat (limited to 'include/vulkan/vulkan_shared.hpp')
-rw-r--r--include/vulkan/vulkan_shared.hpp70
1 files changed, 40 insertions, 30 deletions
diff --git a/include/vulkan/vulkan_shared.hpp b/include/vulkan/vulkan_shared.hpp
index 7b1bb23..f6f7116 100644
--- a/include/vulkan/vulkan_shared.hpp
+++ b/include/vulkan/vulkan_shared.hpp
@@ -654,6 +654,16 @@ namespace VULKAN_HPP_NAMESPACE
};
using SharedSwapchainKHR = SharedHandle<SwapchainKHR>;
+ //=== VK_KHR_display ===
+ template <>
+ class SharedHandleTraits<DisplayKHR>
+ {
+ public:
+ using DestructorType = PhysicalDevice;
+ using deleter = ObjectDestroyShared<DisplayKHR>;
+ };
+ using SharedDisplayKHR = SharedHandle<DisplayKHR>;
+
//=== VK_EXT_debug_report ===
template <>
class SharedHandleTraits<DebugReportCallbackEXT>
@@ -740,6 +750,16 @@ namespace VULKAN_HPP_NAMESPACE
};
using SharedAccelerationStructureNV = SharedHandle<AccelerationStructureNV>;
+ //=== VK_INTEL_performance_query ===
+ template <>
+ class SharedHandleTraits<PerformanceConfigurationINTEL>
+ {
+ public:
+ using DestructorType = Device;
+ using deleter = ObjectDestroyShared<PerformanceConfigurationINTEL>;
+ };
+ using SharedPerformanceConfigurationINTEL = SharedHandle<PerformanceConfigurationINTEL>;
+
//=== VK_KHR_deferred_host_operations ===
template <>
class SharedHandleTraits<DeferredOperationKHR>
@@ -760,6 +780,26 @@ namespace VULKAN_HPP_NAMESPACE
};
using SharedIndirectCommandsLayoutNV = SharedHandle<IndirectCommandsLayoutNV>;
+# if defined( VK_ENABLE_BETA_EXTENSIONS )
+ //=== VK_NV_cuda_kernel_launch ===
+ template <>
+ class SharedHandleTraits<CudaModuleNV>
+ {
+ public:
+ using DestructorType = Device;
+ using deleter = ObjectDestroyShared<CudaModuleNV>;
+ };
+ using SharedCudaModuleNV = SharedHandle<CudaModuleNV>;
+ template <>
+ class SharedHandleTraits<CudaFunctionNV>
+ {
+ public:
+ using DestructorType = Device;
+ using deleter = ObjectDestroyShared<CudaFunctionNV>;
+ };
+ using SharedCudaFunctionNV = SharedHandle<CudaFunctionNV>;
+# endif /*VK_ENABLE_BETA_EXTENSIONS*/
+
# if defined( VK_USE_PLATFORM_FUCHSIA )
//=== VK_FUCHSIA_buffer_collection ===
template <>
@@ -941,20 +981,6 @@ namespace VULKAN_HPP_NAMESPACE
//=== VK_KHR_display ===
template <>
- class SharedHandle<DisplayKHR> : public SharedHandleBaseNoDestroy<DisplayKHR, SharedPhysicalDevice>
- {
- friend SharedHandleBase<DisplayKHR, SharedPhysicalDevice>;
-
- public:
- SharedHandle() = default;
- explicit SharedHandle( DisplayKHR handle, SharedPhysicalDevice parent ) noexcept
- : SharedHandleBaseNoDestroy<DisplayKHR, SharedPhysicalDevice>( handle, std::move( parent ) )
- {
- }
- };
- using SharedDisplayKHR = SharedHandle<DisplayKHR>;
-
- template <>
class SharedHandle<DisplayModeKHR> : public SharedHandleBaseNoDestroy<DisplayModeKHR, SharedDisplayKHR>
{
friend SharedHandleBase<DisplayModeKHR, SharedDisplayKHR>;
@@ -967,22 +993,6 @@ namespace VULKAN_HPP_NAMESPACE
}
};
using SharedDisplayModeKHR = SharedHandle<DisplayModeKHR>;
-
- //=== VK_INTEL_performance_query ===
-
- template <>
- class SharedHandle<PerformanceConfigurationINTEL> : public SharedHandleBaseNoDestroy<PerformanceConfigurationINTEL, SharedDevice>
- {
- friend SharedHandleBase<PerformanceConfigurationINTEL, SharedDevice>;
-
- public:
- SharedHandle() = default;
- explicit SharedHandle( PerformanceConfigurationINTEL handle, SharedDevice parent ) noexcept
- : SharedHandleBaseNoDestroy<PerformanceConfigurationINTEL, SharedDevice>( handle, std::move( parent ) )
- {
- }
- };
- using SharedPerformanceConfigurationINTEL = SharedHandle<PerformanceConfigurationINTEL>;
#endif // !VULKAN_HPP_NO_SMART_HANDLE
} // namespace VULKAN_HPP_NAMESPACE
#endif // VULKAN_SHARED_HPP