diff options
| author | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 09:48:06 -0500 |
|---|---|---|
| committer | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 09:48:06 -0500 |
| commit | bf0ce0d062acede44535e62d48187cedf4b0c2b3 (patch) | |
| tree | dc0a3cdcf828a42a0b6465d6b103b95202983f5d /runtime/src/vulkan_backend.h | |
| parent | c034e448c37d8522978af94f3cb01ec3e903fcfc (diff) | |
| parent | eebf85b60f021ce567427ce766f4ec1c88b0f13a (diff) | |
Merge pull request #1706 from Ash Hopkins
Diffstat (limited to 'runtime/src/vulkan_backend.h')
| -rw-r--r-- | runtime/src/vulkan_backend.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/src/vulkan_backend.h b/runtime/src/vulkan_backend.h index e577e6af0..814f53549 100644 --- a/runtime/src/vulkan_backend.h +++ b/runtime/src/vulkan_backend.h | |||
| @@ -3,7 +3,8 @@ | |||
| 3 | // The execution side of the D3D12 layer, without COM: the per-device Vulkan context (resources, layout tracker, | 3 | // The execution side of the D3D12 layer, without COM: the per-device Vulkan context (resources, layout tracker, |
| 4 | // image views), queues that execute command lists, and timeline-semaphore fences. The COM objects in | 4 | // image views), queues that execute command lists, and timeline-semaphore fences. The COM objects in |
| 5 | // shims/d3d12_com.cpp are thin wrappers over these. Needs Vulkan 1.2 timeline semaphores; rectangle clears and | 5 | // shims/d3d12_com.cpp are thin wrappers over these. Needs Vulkan 1.2 timeline semaphores; rectangle clears and |
| 6 | // enhanced barriers need the Vulkan 1.3 functions (dynamicRendering, synchronization2) to be enabled. | 6 | // enhanced barriers need the Vulkan 1.3 functions (dynamicRendering, synchronization2) to be enabled, as core |
| 7 | // features or through their KHR extensions on a 1.2 device (vulkan13_features.h). | ||
| 7 | 8 | ||
| 8 | #ifndef VK_NO_PROTOTYPES | 9 | #ifndef VK_NO_PROTOTYPES |
| 9 | #define VK_NO_PROTOTYPES | 10 | #define VK_NO_PROTOTYPES |
| @@ -12,6 +13,7 @@ | |||
| 12 | #include "occlusion_sum_spirv.h" | 13 | #include "occlusion_sum_spirv.h" |
| 13 | #include "retire_tickets.h" | 14 | #include "retire_tickets.h" |
| 14 | #include "statistics_sum_spirv.h" | 15 | #include "statistics_sum_spirv.h" |
| 16 | #include "vulkan13_features.h" | ||
| 15 | #include "vulkan_depth24.h" | 17 | #include "vulkan_depth24.h" |
| 16 | #include "vulkan_scratch.h" | 18 | #include "vulkan_scratch.h" |
| 17 | #include "vulkan_replay.h" | 19 | #include "vulkan_replay.h" |
| @@ -84,7 +86,7 @@ struct VulkanDeviceFunctions { | |||
| 84 | // extension is not enabled, and the query functions are optional (a list that uses queries without them is | 86 | // extension is not enabled, and the query functions are optional (a list that uses queries without them is |
| 85 | // unsupported). The compute and descriptor functions are needed for normalized or summed occlusion results. | 87 | // unsupported). The compute and descriptor functions are needed for normalized or summed occlusion results. |
| 86 | bool load(PFN_vkGetDeviceProcAddr get, VkDevice device) { | 88 | bool load(PFN_vkGetDeviceProcAddr get, VkDevice device) { |
| 87 | #define LEONIDA_VK_LOAD(name) name = reinterpret_cast<PFN_##name>(get(device, #name)); | 89 | #define LEONIDA_VK_LOAD(name) name = reinterpret_cast<PFN_##name>(leonida::device_proc_or_khr(get, device, #name)); |
| 88 | LEONIDA_VK_DEVICE_FUNCTIONS(LEONIDA_VK_LOAD) | 90 | LEONIDA_VK_DEVICE_FUNCTIONS(LEONIDA_VK_LOAD) |
| 89 | #undef LEONIDA_VK_LOAD | 91 | #undef LEONIDA_VK_LOAD |
| 90 | return vkCreateCommandPool && vkDestroyCommandPool && vkAllocateCommandBuffers && vkResetCommandBuffer && | 92 | return vkCreateCommandPool && vkDestroyCommandPool && vkAllocateCommandBuffers && vkResetCommandBuffer && |