Correctly set the number of viewports/scissors

This commit is contained in:
Guillaume Meunier
2024-11-03 22:18:38 +01:00
parent e00cd05742
commit 88d013ebb9
+4
View File
@@ -500,6 +500,10 @@ void scenes::stream::render(const XrFrameState & frame_state)
.InputAssemblyState = {{ .InputAssemblyState = {{
.topology = vk::PrimitiveTopology::eTriangleStrip, .topology = vk::PrimitiveTopology::eTriangleStrip,
}}, }},
// With vk::DynamicState::eViewport, vk::DynamicState::eScissor the number of viewports
// and scissors is still used, put a vector with one element
.Viewports = {{}},
.Scissors = {{}},
.RasterizationState = {{ .RasterizationState = {{
.polygonMode = vk::PolygonMode::eFill, .polygonMode = vk::PolygonMode::eFill,
.lineWidth = 1, .lineWidth = 1,