Correctly set the number of viewports/scissors
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user