mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-13 16:08:50 +01:00
[dxvk] Also consider built-ins declared via OpMemberDecorate
Otherwise we'll miss D3D11 shaders. Oops...
This commit is contained in:
parent
4d9c09b5e7
commit
e7b7299ec1
@ -114,6 +114,13 @@ namespace dxvk {
|
||||
m_o1IdxOffset = ins.offset() + 3;
|
||||
}
|
||||
|
||||
if (ins.opCode() == spv::OpMemberDecorate) {
|
||||
if (ins.arg(3) == spv::DecorationBuiltIn) {
|
||||
if (ins.arg(4) == spv::BuiltInPosition)
|
||||
m_flags.set(DxvkShaderFlag::ExportsPosition);
|
||||
}
|
||||
}
|
||||
|
||||
if (ins.opCode() == spv::OpExecutionMode) {
|
||||
if (ins.arg(2) == spv::ExecutionModeStencilRefReplacingEXT)
|
||||
m_flags.set(DxvkShaderFlag::ExportsStencilRef);
|
||||
|
Loading…
Reference in New Issue
Block a user