shader: collect usage once and emit descriptor slots directly

This commit is contained in:
nmzik committed 2026-10-09 02:17:38 +04:00
1 parent b35cdc39b7
commit e1ac893a0c
28 files changed
+1066 -1406

No files matched your search

@@ -9,9 +9,9 @@
namespace Libs::Graphics::ShaderRecompiler::Spirv {
// Resets and writes IR backend IDs; do not emit the same program concurrently.
std::vector<uint32_t> EmitProgram(const IR::Program& program,
ShaderStageInputInfo input_info);
// Resets and writes backend IDs and descriptor indices; do not emit the same program concurrently.
std::vector<uint32_t> EmitProgram(IR::Program& program, ShaderStageInputInfo input_info,
uint32_t push_data_start_dword = 0);
} // namespace Libs::Graphics::ShaderRecompiler::Spirv