glasm: Support textures used in more than one stage

This commit is contained in:
ReinUsesLisp 2021-05-18 21:04:09 -03:00 committed by ameerj
parent 3d3ed53511
commit 8b7d5912d6
4 changed files with 25 additions and 5 deletions

View file

@ -302,7 +302,7 @@ std::unique_ptr<GraphicsProgram> ShaderCache::CreateGraphicsProgram(
const size_t stage_index{index - 1};
infos[stage_index] = &program.info;
if (device.UseAssemblyShaders()) {
const std::string code{EmitGLASM(profile, program)};
const std::string code{EmitGLASM(profile, program, binding)};
assembly_programs[stage_index] = CompileProgram(code, AssemblyStage(stage_index));
} else {
const std::vector<u32> code{EmitSPIRV(profile, program, binding)};