|
|
@ -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); |
|
|
|