1
0
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:
Philip Rebohle 2022-08-06 02:28:39 +02:00
parent 4d9c09b5e7
commit e7b7299ec1
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

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