vsg: include/vsg/vk/DeviceExtensions.h Source File

vsg 1.1.13 VulkanSceneGraph library

Loading...
Searching...
No Matches
DeviceExtensions.h
1#pragma once
2
3/* <editor-fold desc="MIT License">
4
5Copyright(c) 2018 Robert Osfield
6
7Permission 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
9The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
10
11THE 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
17namespace vsg
18{
19 class Device;
20
23 class VSG_DECLSPEC DeviceExtensions : public Inherit<Object, DeviceExtensions>
24 {
25 public:
26 explicit DeviceExtensions(Device* device);
27
28 // VK_EXT_host_query_reset / Vulkan-1.2
29 PFN_vkResetQueryPoolEXT vkResetQueryPool = nullptr;
30
31 // VK_KHR_create_renderpass2
32 PFN_vkCreateRenderPass2KHR_Compatibility vkCreateRenderPass2 = nullptr;
33
34 // VK_KHR_ray_tracing
35 PFN_vkCreateAccelerationStructureKHR vkCreateAccelerationStructureKHR = nullptr;
36 PFN_vkDestroyAccelerationStructureKHR vkDestroyAccelerationStructureKHR = nullptr;
37 PFN_vkGetAccelerationStructureDeviceAddressKHR vkGetAccelerationStructureDeviceAddressKHR = nullptr;
38 PFN_vkGetAccelerationStructureBuildSizesKHR vkGetAccelerationStructureBuildSizesKHR = nullptr;
39 PFN_vkCmdBuildAccelerationStructuresKHR vkCmdBuildAccelerationStructuresKHR = nullptr;
40 PFN_vkCreateRayTracingPipelinesKHR vkCreateRayTracingPipelinesKHR = nullptr;
41 PFN_vkGetRayTracingShaderGroupHandlesKHR vkGetRayTracingShaderGroupHandlesKHR = nullptr;
42 PFN_vkCmdTraceRaysKHR vkCmdTraceRaysKHR = nullptr;
43
44 PFN_vkGetBufferDeviceAddressKHR_Compatibility vkGetBufferDeviceAddressKHR = nullptr;
45
46 // VK_EXT_mesh_shader
47 PFN_vkCmdDrawMeshTasksEXT vkCmdDrawMeshTasksEXT = nullptr;
48 PFN_vkCmdDrawMeshTasksIndirectEXT vkCmdDrawMeshTasksIndirectEXT = nullptr;
49 PFN_vkCmdDrawMeshTasksIndirectCountEXT vkCmdDrawMeshTasksIndirectCountEXT = nullptr;
50
51 // VK_EXT_extended_dynamic_state / Vulkan 1.3
52 PFN_vkCmdSetCullModeEXT vkCmdSetCullMode = nullptr;
53 PFN_vkCmdSetFrontFaceEXT vkCmdSetFrontFace = nullptr;
54 PFN_vkCmdSetPrimitiveTopologyEXT vkCmdSetPrimitiveTopology = nullptr;
55 PFN_vkCmdSetViewportWithCountEXT vkCmdSetViewportWithCount = nullptr;
56 PFN_vkCmdSetScissorWithCountEXT vkCmdSetScissorWithCount = nullptr;
57 PFN_vkCmdBindVertexBuffers2EXT vkCmdBindVertexBuffers2 = nullptr;
58 PFN_vkCmdSetDepthTestEnableEXT vkCmdSetDepthTestEnable = nullptr;
59 PFN_vkCmdSetDepthWriteEnableEXT vkCmdSetDepthWriteEnable = nullptr;
60 PFN_vkCmdSetDepthCompareOpEXT vkCmdSetDepthCompareOp = nullptr;
61 PFN_vkCmdSetDepthBoundsTestEnableEXT vkCmdSetDepthBoundsTestEnable = nullptr;
62 PFN_vkCmdSetStencilTestEnableEXT vkCmdSetStencilTestEnable = nullptr;
63 PFN_vkCmdSetStencilOpEXT vkCmdSetStencilOp = nullptr;
64 };
65 VSG_type_name(vsg::DeviceExtensions);
66
67} // namespace vsg
vsg::DeviceExtensions
Definition DeviceExtensions.h:24
vsg::Device
Device encapsulates VkDevice, a logical handle to the PhysicalDevice with capabilities specified duri...
Definition Device.h:39