mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-06-10 03:35:00 -06:00
Add stencil reference variable definition
This commit is contained in:
parent
8b1e22ddd8
commit
4cef44eeb2
@ -675,6 +675,10 @@ void EmitContext::DefineOutputs() {
|
||||
sample_mask = DefineVariable(TypeArray(U32[1], u32_one_value), spv::BuiltIn::SampleMask,
|
||||
spv::StorageClass::Output);
|
||||
}
|
||||
if (info.stores.Get(IR::Attribute::StencilRef)) {
|
||||
stencil_ref = DefineVariable(S32[1], spv::BuiltIn::FragStencilRefEXT,
|
||||
spv::StorageClass::Output);
|
||||
}
|
||||
u32 num_render_targets = 0;
|
||||
for (u32 i = 0; i < IR::NumRenderTargets; i++) {
|
||||
const IR::Attribute mrt{IR::Attribute::RenderTarget0 + i};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user