d3d12: Fix a warning

This commit is contained in:
vlj 2015-05-28 23:48:34 +02:00 committed by Vincent Lejeune
parent 74dab18174
commit 53ac34db35
1 changed files with 2 additions and 2 deletions

View File

@ -80,8 +80,8 @@ D3D12_RESOURCE_DESC getTexture2DResourceDesc(size_t width, size_t height, DXGI_F
D3D12_RESOURCE_DESC result;
result = {};
result.Dimension = D3D12_RESOURCE_DIMENSION_TEXTURE2D;
result.Width = width;
result.Height = height;
result.Width = (UINT)width;
result.Height = (UINT)height;
result.Format = dxgiFormat;
result.DepthOrArraySize = 1;
result.SampleDesc.Count = 1;