gpu: make cull mode and front face dynamic state

This commit is contained in:
Senaxx
2026-10-27 05:56:52 +01:00
committed by nmzik
parent 2463e3aaf0
commit 1ec69f8e7d
7 changed files with 72 additions and 24 deletions
@@ -125,6 +125,14 @@ void DynamicState::Commit(const GraphicContext& graphics, vk::CommandBuffer cmdb
}
}
}
if (dirty_state.cull_mode) {
dirty_state.cull_mode = false;
cmdbuf.setCullMode(cull_mode);
}
if (dirty_state.front_face) {
dirty_state.front_face = false;
cmdbuf.setFrontFace(front_face);
}
if (dirty_state.blend_constants) {
dirty_state.blend_constants = false;
cmdbuf.setBlendConstants(blend_constants.data());