mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-14 09:57:58 -05:00
shader: Implement SampleMask
This commit is contained in:
@ -1179,7 +1179,10 @@ void EmitContext::DefineOutputs(const IR::Program& program) {
|
||||
if (info.stores_frag_depth) {
|
||||
frag_depth = DefineOutput(*this, F32[1], std::nullopt);
|
||||
Decorate(frag_depth, spv::Decoration::BuiltIn, spv::BuiltIn::FragDepth);
|
||||
Name(frag_depth, "frag_depth");
|
||||
}
|
||||
if (info.stores_sample_mask) {
|
||||
sample_mask = DefineOutput(*this, U32[1], std::nullopt);
|
||||
Decorate(sample_mask, spv::Decoration::BuiltIn, spv::BuiltIn::SampleMask);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
Reference in New Issue
Block a user