aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathaniel Cesario <nathanil@lunarg.com>2025-04-28 21:47:00 -0600
committerncesario-lunarg <71668273+ncesario-lunarg@users.noreply.github.com>2025-04-28 22:26:41 -0600
commitaf3abdf3ec68a517e407c05f259cdadfd2b5cfe2 (patch)
tree4a8bf3ccad238e5601e6c9921cbb7caea963cce5
parentad2f0170f9466fadd96e3fdd65fad02cd3a3739b (diff)
downloadusermoji-af3abdf3ec68a517e407c05f259cdadfd2b5cfe2.tar.xz
cube: Fix validation warning
Ensures vkCreateDisplayPlaneSurfaceKHR is loaded using vkGetInstanceProcAddr rather than vkGetDeviceProcAddr.
-rw-r--r--cube/cube_functions.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cube/cube_functions.h b/cube/cube_functions.h
index 6592968f..96f55e24 100644
--- a/cube/cube_functions.h
+++ b/cube/cube_functions.h
@@ -274,6 +274,7 @@ static void load_vulkan_instance_functions(VkInstance instance) {
LOAD_INSTANCE_FUNCTION(instance, vkGetPhysicalDeviceSurfacePresentModesKHR);
LOAD_INSTANCE_FUNCTION(instance, vkGetPhysicalDeviceSurfaceSupportKHR);
LOAD_INSTANCE_FUNCTION(instance, vkGetDeviceProcAddr);
+ LOAD_INSTANCE_FUNCTION(instance, vkCreateDisplayPlaneSurfaceKHR);
}
static void load_vulkan_device_functions(VkDevice device) {
LOAD_DEVICE_FUNCTION(device, vkAcquireNextImageKHR);
@@ -298,7 +299,6 @@ static void load_vulkan_device_functions(VkDevice device) {
LOAD_DEVICE_FUNCTION(device, vkCreateCommandPool);
LOAD_DEVICE_FUNCTION(device, vkCreateDescriptorPool);
LOAD_DEVICE_FUNCTION(device, vkCreateDescriptorSetLayout);
- LOAD_DEVICE_FUNCTION(device, vkCreateDisplayPlaneSurfaceKHR);
LOAD_DEVICE_FUNCTION(device, vkCreateFence);
LOAD_DEVICE_FUNCTION(device, vkCreateFramebuffer);
LOAD_DEVICE_FUNCTION(device, vkCreateGraphicsPipelines);