Disable view instancing on D3D12 for postvs

* It's unclear if this is supposed to be legal or not, and if it is legal then
  how the output is arranged.
This commit is contained in:
baldurk
2021-07-28 13:02:19 +01:00
parent 210f391901
commit a516c2d483
+4
View File
@@ -335,6 +335,10 @@ void D3D12Replay::InitPostVSBuffers(uint32_t eventId)
RDCEraseEl(psoDesc.RTVFormats);
psoDesc.DSVFormat = DXGI_FORMAT_UNKNOWN;
// for now disable view instancing, unclear if this is legal but it
psoDesc.ViewInstancing.Flags = D3D12_VIEW_INSTANCING_FLAG_NONE;
psoDesc.ViewInstancing.ViewInstanceCount = 0;
ID3D12PipelineState *pipe = NULL;
hr = m_pDevice->CreatePipeState(psoDesc, &pipe);
if(FAILED(hr))