1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-18 20:52:10 +01:00

[d3d11] Fix WSize computation for UAV creation

This commit is contained in:
Philip Rebohle 2019-06-13 04:01:15 +02:00
parent f02a5a7453
commit 089d47e02e
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -209,6 +209,7 @@ namespace dxvk {
pDesc->Format = resourceDesc.Format; pDesc->Format = resourceDesc.Format;
pDesc->ViewDimension = D3D11_UAV_DIMENSION_TEXTURE3D; pDesc->ViewDimension = D3D11_UAV_DIMENSION_TEXTURE3D;
pDesc->Texture3D.MipSlice = 0; pDesc->Texture3D.MipSlice = 0;
pDesc->Texture3D.WSize = resourceDesc.Depth;
} return S_OK; } return S_OK;
default: default:
@ -275,7 +276,7 @@ namespace dxvk {
} }
format = resourceDesc.Format; format = resourceDesc.Format;
numLayers = resourceDesc.Depth >> pDesc->Texture3D.MipSlice; numLayers = std::max(resourceDesc.Depth >> pDesc->Texture3D.MipSlice, 1u);
} break; } break;
default: default: