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:
parent
f02a5a7453
commit
089d47e02e
@ -209,6 +209,7 @@ namespace dxvk {
|
||||
pDesc->Format = resourceDesc.Format;
|
||||
pDesc->ViewDimension = D3D11_UAV_DIMENSION_TEXTURE3D;
|
||||
pDesc->Texture3D.MipSlice = 0;
|
||||
pDesc->Texture3D.WSize = resourceDesc.Depth;
|
||||
} return S_OK;
|
||||
|
||||
default:
|
||||
@ -275,7 +276,7 @@ namespace dxvk {
|
||||
}
|
||||
|
||||
format = resourceDesc.Format;
|
||||
numLayers = resourceDesc.Depth >> pDesc->Texture3D.MipSlice;
|
||||
numLayers = std::max(resourceDesc.Depth >> pDesc->Texture3D.MipSlice, 1u);
|
||||
} break;
|
||||
|
||||
default:
|
||||
|
Loading…
x
Reference in New Issue
Block a user