Fix vulkan scaling issue (#3489)

This commit is contained in:
Adrian Cojocaru
2025-05-21 19:46:55 +03:00
committed by GitHub
parent fece07e303
commit e97687bc55
3 changed files with 23 additions and 5 deletions

View File

@@ -230,7 +230,7 @@ void SurfaceRenderableResource::initDepthStencil() {
depthAllocation->imageView = device->createImageViewUnique(imageViewCreateInfo);
backend.setDebugName(vk::Image(depthAllocation->image), "SwapchainDepthImage");
backend.setDebugName(depthAllocation->image, "SwapchainDepthImage");
backend.setDebugName(depthAllocation->imageView.get(), "SwapchainDepthImageView");
}
@@ -309,8 +309,8 @@ void SurfaceRenderableResource::init(uint32_t w, uint32_t h) {
swapchainImageViews.push_back(device->createImageViewUnique(imageViewCreateInfo));
const size_t index = swapchainImageViews.size() - 1;
backend.setDebugName(vk::Image(image), "SwapchainImage_" + std::to_string(index));
backend.setDebugName(vk::Image(image), "SwapchainImageView_" + std::to_string(index));
backend.setDebugName(image, "SwapchainImage_" + std::to_string(index));
backend.setDebugName(image, "SwapchainImageView_" + std::to_string(index));
}
// depth resources