mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-06-10 03:35:00 -06:00
Add stencil reference check for shader export support
This commit is contained in:
parent
954de76b68
commit
041e985761
@ -675,7 +675,7 @@ 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)) {
|
||||
if (info.stores.Get(IR::Attribute::StencilRef) && profile.supports_shader_stencil_export) {
|
||||
stencil_ref = DefineVariable(S32[1], spv::BuiltIn::FragStencilRefEXT,
|
||||
spv::StorageClass::Output);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user