[vk] Fix dynamic vertex input state handling #295

Merged
Shinmegumi merged 1 commit from dynamic-input-state into master 2025-08-23 20:34:06 +02:00

1 commit

Author SHA1 Message Date
a54ccec6f7 [vk] Fix dynamic vertex input state handling
All checks were successful
eden-license / license-header (pull_request) Successful in 25s
Previously, UpdateVertexInput() was always called when
has_dynamic_vertex_input was true, even if the current graphics pipeline
was not created with VK_DYNAMIC_STATE_VERTEX_INPUT_EXT. This could lead
to unnecessary or invalid state updates.

This change:
- Adds GraphicsPipeline::HasDynamicVertexInput() to check whether the
  pipeline was created with dynamic vertex input enabled.
- Calls UpdateVertexInput() only when the current pipeline supports
  VK_DYNAMIC_STATE_VERTEX_INPUT_EXT.

This ensures vertex input state updates are applied only when valid,
improving correctness and preventing redundant updates.
2025-08-23 20:33:44 +02:00