shader: fix spilled mesh shader data loads

This commit is contained in:
nmzik
2026-09-06 16:54:01 +04:00
parent 9c6f6fa624
commit ced73c56cc
2 changed files with 40 additions and 3 deletions
@@ -3,7 +3,7 @@
namespace Libs::Graphics::ShaderRecompiler::Spirv::Emitter {
uint32_t EmitShaderDataDwordLoad(EmitterState& state, uint32_t dword_index) {
if (state.push_constant_variable != 0) {
if (state.program.bindings.UsesPushData()) {
dword_index += state.program.bindings.push_data_start_dword;
const auto pointer = state.builder.AllocateId();
const auto value = state.builder.AllocateId();