We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f76881 commit 80ba6f4Copy full SHA for 80ba6f4
vulkan-cpp/pipeline.cppm
@@ -92,6 +92,7 @@ export namespace vk {
92
rasterization_state rasterization;
93
multisample_state multisample;
94
color_blend_state color_blend;
95
+ bool depth_stencil_enabled = false;
96
depth_stencil_state depth_stencil;
97
std::span<dynamic_state> dynamic_states = {};
98
};
@@ -289,7 +290,7 @@ export namespace vk {
289
290
.pMultisampleState = &multisampling_ci,
291
.pDepthStencilState = &pipeline_deth_stencil_state_ci,
292
.pColorBlendState = &color_blending_ci,
- .pDynamicState = &dynamic_state_ci,
293
+ .pDynamicState = (p_info.depth_stencil_enabled) ? &dynamic_state_ci : nullptr,
294
.layout = m_pipeline_layout,
295
.renderPass = p_info.renderpass,
296
.subpass = 0,
0 commit comments