upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/vulkan_backend.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/src/vulkan_backend.h')
-rw-r--r--runtime/src/vulkan_backend.h6
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 &&