Create readback buffers without any flags (like RTV/UAV access)

This commit is contained in:
baldurk
2016-09-16 16:31:57 +02:00
parent 5577882879
commit 56eef07de1
+2
View File
@@ -461,6 +461,8 @@ bool D3D12ResourceManager::Prepare_InitialState(ID3D12DeviceChild *res)
heapProps.CreationNodeMask = 1;
heapProps.VisibleNodeMask = 1;
desc.Flags = D3D12_RESOURCE_FLAG_NONE;
ID3D12Resource *copyDst = NULL;
HRESULT hr = m_Device->GetReal()->CreateCommittedResource(
&heapProps, D3D12_HEAP_FLAG_NONE, &desc, D3D12_RESOURCE_STATE_COPY_DEST, NULL,