vsg  1.1.0
VulkanSceneGraph library
DeviceExtensions.h
1 #pragma once
2 
3 /* <editor-fold desc="MIT License">
4 
5 Copyright(c) 2018 Robert Osfield
6 
7 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
8 
9 The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
10 
11 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
12 
13 </editor-fold> */
14 
15 #include <vsg/vk/Instance.h>
16 
17 namespace vsg
18 {
19  class Device;
20 
21  extern VSG_DECLSPEC bool isExtensionSupported(const char* extensionName);
22 
23  extern VSG_DECLSPEC bool isExtensionListSupported(const Names& extensionList);
24 
27  class VSG_DECLSPEC DeviceExtensions : public Inherit<Object, DeviceExtensions>
28  {
29  public:
30  explicit DeviceExtensions(Device* device);
31 
32  // VK_EXT_host_query_reset / Vulkan-1.2
33  PFN_vkResetQueryPoolEXT vkResetQueryPool = nullptr;
34 
35  // VK_KHR_create_renderpass2
36  PFN_vkCreateRenderPass2KHR_Compatibility vkCreateRenderPass2 = nullptr;
37 
38  // VK_KHR_ray_tracing
39  PFN_vkCreateAccelerationStructureKHR vkCreateAccelerationStructureKHR = nullptr;
40  PFN_vkDestroyAccelerationStructureKHR vkDestroyAccelerationStructureKHR = nullptr;
41  PFN_vkGetAccelerationStructureDeviceAddressKHR vkGetAccelerationStructureDeviceAddressKHR = nullptr;
42  PFN_vkGetAccelerationStructureBuildSizesKHR vkGetAccelerationStructureBuildSizesKHR = nullptr;
43  PFN_vkCmdBuildAccelerationStructuresKHR vkCmdBuildAccelerationStructuresKHR = nullptr;
44  PFN_vkCreateRayTracingPipelinesKHR vkCreateRayTracingPipelinesKHR = nullptr;
45  PFN_vkGetRayTracingShaderGroupHandlesKHR vkGetRayTracingShaderGroupHandlesKHR = nullptr;
46  PFN_vkCmdTraceRaysKHR vkCmdTraceRaysKHR = nullptr;
47 
48  PFN_vkGetBufferDeviceAddressKHR_Compatibility vkGetBufferDeviceAddressKHR = nullptr;
49 
50  // VK_EXT_mesh_shader
51  PFN_vkCmdDrawMeshTasksEXT vkCmdDrawMeshTasksEXT = nullptr;
52  PFN_vkCmdDrawMeshTasksIndirectEXT vkCmdDrawMeshTasksIndirectEXT = nullptr;
53  PFN_vkCmdDrawMeshTasksIndirectCountEXT vkCmdDrawMeshTasksIndirectCountEXT = nullptr;
54  };
55  VSG_type_name(vsg::DeviceExtensions);
56 
57 } // namespace vsg
Definition: DeviceExtensions.h:28
Device encapsulates VkDevice, a logical handle to the PhysicalDevice with capabilities specified duri...
Definition: Device.h:37
Definition: Inherit.h:28