1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-11-29 10:24:10 +01:00

[d3d11] Initialize buffer flags in D3D11UnorderedAccessView::GetDescFromResource().

This commit is contained in:
Paul Gofman 2021-07-01 15:34:48 +03:00 committed by Philip Rebohle
parent 309284e7dc
commit 8b6ac527b4

View File

@ -214,6 +214,7 @@ namespace dxvk {
pDesc->ViewDimension = D3D11_UAV_DIMENSION_BUFFER;
pDesc->Buffer.FirstElement = 0;
pDesc->Buffer.NumElements = bufferDesc.ByteWidth / bufferDesc.StructureByteStride;
pDesc->Buffer.Flags = 0;
return S_OK;
}
} return E_INVALIDARG;