mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-02 13:29:14 +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) {
|
if (info.sclass == spv::StorageClassOutput) {
|
||||||
m_module.decorateLocation(varId, regIdx);
|
m_module.decorateLocation(varId, regIdx);
|
||||||
m_entryPointInterfaces.push_back(varId);
|
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 };
|
m_oRegs.at(regIdx) = { regType, varId };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user