mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-03 22:24:13 +01:00
[dxbc] Emit Index decoration for pixel shader outputs
Simplifies shader patching when dual-source blending is used.
This commit is contained in:
parent
3e3c31f365
commit
f69c5e4c4e
@ -719,6 +719,10 @@ namespace dxvk {
|
||||
if (info.sclass == spv::StorageClassOutput) {
|
||||
m_module.decorateLocation(varId, regIdx);
|
||||
m_entryPointInterfaces.push_back(varId);
|
||||
|
||||
// Add index decoration for potential dual-source blending
|
||||
if (m_programInfo.type() == DxbcProgramType::PixelShader)
|
||||
m_module.decorateIndex(varId, 0);
|
||||
}
|
||||
|
||||
m_oRegs.at(regIdx) = { regType, varId };
|
||||
|
Loading…
Reference in New Issue
Block a user