Fix failing Vulkan render tests (#2851)

This commit is contained in:
Adrian Cojocaru
2024-09-19 21:30:14 +03:00
committed by GitHub
parent 7913eab644
commit e2df2d9061
12 changed files with 56 additions and 2 deletions

View File

@@ -53,7 +53,7 @@ void RenderPass::clearStencil(uint32_t value) const {
.setAspectMask(vk::ImageAspectFlagBits::eStencil)
.setClearValue(vk::ClearDepthStencilValue(0.0f, value));
const auto& rect = vk::ClearRect().setBaseArrayLayer(0).setLayerCount(1).setRect(
const auto rect = vk::ClearRect().setBaseArrayLayer(0).setLayerCount(1).setRect(
{{0, 0}, {extent.width, extent.height}});
commandEncoder.getCommandBuffer()->clearAttachments(attach, rect);