From 8b7f536442b616fc0c7b09073c7d2bb2b2e1d208 Mon Sep 17 00:00:00 2001 From: Georg Hagen Date: Tue, 31 Dec 2024 11:06:40 +0100 Subject: [PATCH] Update formatting --- openVulkanoCpp/Vulkan/DepthBufferQuery.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/openVulkanoCpp/Vulkan/DepthBufferQuery.cpp b/openVulkanoCpp/Vulkan/DepthBufferQuery.cpp index 3b2b376..fd1a48f 100644 --- a/openVulkanoCpp/Vulkan/DepthBufferQuery.cpp +++ b/openVulkanoCpp/Vulkan/DepthBufferQuery.cpp @@ -70,12 +70,9 @@ namespace OpenVulkano::Vulkan vk::Offset3D DepthBufferQuery::GetCopyOffset() const { vk::Extent3D depthExtent = renderer.GetContext().swapChain.GetCurrentDepthBuffer().extent; - int32_t x = static_cast(depthQueryCoordinates.x * depthExtent.width); x = std::min(depthExtent.width - SAMPLE_SIZE_WIDTH, std::max(0, x)); - int32_t y = static_cast(depthQueryCoordinates.y * depthExtent.height); - y = std::min(depthExtent.height - SAMPLE_SIZE_HEIGHT, std::max(0, y)); return { x, y, 0 }; }