Browse Source

Update src/shader_recompiler/backend/spirv/spirv_emit_context.cpp

pull/3279/head
chrelliott978 1 month ago
committed by crueter
parent
commit
79062d303e
  1. 3
      src/shader_recompiler/backend/spirv/spirv_emit_context.cpp

3
src/shader_recompiler/backend/spirv/spirv_emit_context.cpp

@ -1695,11 +1695,12 @@ void EmitContext::DefineOutputs(const IR::Program& program) {
frag_color[index] = DefineOutput(*this, output_type, std::nullopt); frag_color[index] = DefineOutput(*this, output_type, std::nullopt);
Decorate(frag_color[index], spv::Decoration::Location, index); Decorate(frag_color[index], spv::Decoration::Location, index);
Name(frag_color[index], fmt::format("frag_color{}", index)); Name(frag_color[index], fmt::format("frag_color{}", index));
}
} else {
frag_color[index] = DefineOutput(*this, F32[4], std::nullopt); frag_color[index] = DefineOutput(*this, F32[4], std::nullopt);
Decorate(frag_color[index], spv::Decoration::Location, index); Decorate(frag_color[index], spv::Decoration::Location, index);
Name(frag_color[index], fmt::format("frag_color{}", index)); Name(frag_color[index], fmt::format("frag_color{}", index));
} }
}
if (info.stores_frag_depth) { if (info.stores_frag_depth) {
frag_depth = DefineOutput(*this, F32[1], std::nullopt); frag_depth = DefineOutput(*this, F32[1], std::nullopt);
Decorate(frag_depth, spv::Decoration::BuiltIn, spv::BuiltIn::FragDepth); Decorate(frag_depth, spv::Decoration::BuiltIn, spv::BuiltIn::FragDepth);

Loading…
Cancel
Save