aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Giessen <charles@lunarg.com>2024-09-27 14:56:00 -0500
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>2024-09-27 14:42:28 -0600
commit2020cec4111c87d85b167d583180b839f0c736c5 (patch)
tree9b5727a7a4da8799ba03486e4e2625cd7887929d
parent1626752592910fc4fdb33a239c93056b29cf7d31 (diff)
downloadusermoji-2020cec4111c87d85b167d583180b839f0c736c5.tar.xz
vulkaninfo: Move variable declaration closer to use
-rw-r--r--vulkaninfo/vulkaninfo.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/vulkaninfo/vulkaninfo.h b/vulkaninfo/vulkaninfo.h
index 815d24e0..61540559 100644
--- a/vulkaninfo/vulkaninfo.h
+++ b/vulkaninfo/vulkaninfo.h
@@ -1194,10 +1194,10 @@ class AppSurface {
surf_present_modes =
GetVector<VkPresentModeKHR>("vkGetPhysicalDeviceSurfacePresentModesKHR", vkGetPhysicalDeviceSurfacePresentModesKHR,
phys_device, surface_extension.surface);
- const VkPhysicalDeviceSurfaceInfo2KHR surface_info2 = {VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SURFACE_INFO_2_KHR, nullptr,
- surface_extension.surface};
if (inst.CheckExtensionEnabled(VK_KHR_GET_SURFACE_CAPABILITIES_2_EXTENSION_NAME)) {
+ const VkPhysicalDeviceSurfaceInfo2KHR surface_info2 = {VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SURFACE_INFO_2_KHR, nullptr,
+ surface_extension.surface};
VkSurfaceFormat2KHR init{};
init.sType = VK_STRUCTURE_TYPE_SURFACE_FORMAT_2_KHR;
surf_formats2 = GetVectorInit<VkSurfaceFormat2KHR>(