mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[dxbc] Enable MultiViewport capability if needed
Fixes invalid SPIR-V generated since 60d6416e5f8200d5340f75d2655a1478b1472330.
This commit is contained in:
parent
60d6416e5f
commit
a700e928ef
@ -5177,6 +5177,8 @@ namespace dxvk {
|
|||||||
|
|
||||||
case DxbcSystemValue::ViewportId: {
|
case DxbcSystemValue::ViewportId: {
|
||||||
if (m_gs.builtinViewportId == 0) {
|
if (m_gs.builtinViewportId == 0) {
|
||||||
|
m_module.enableCapability(spv::CapabilityMultiViewport);
|
||||||
|
|
||||||
m_gs.builtinViewportId = emitNewBuiltinVariable({
|
m_gs.builtinViewportId = emitNewBuiltinVariable({
|
||||||
{ DxbcScalarType::Uint32, 1, 0 },
|
{ DxbcScalarType::Uint32, 1, 0 },
|
||||||
spv::StorageClassOutput },
|
spv::StorageClassOutput },
|
||||||
|
Loading…
x
Reference in New Issue
Block a user