1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-14 04:29:15 +01:00

[d3d11] Fix format for 1D RTVs and DSVs

This commit is contained in:
Philip Rebohle 2018-02-26 17:00:24 +01:00
parent ec59389527
commit c7acfb667f
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -1801,6 +1801,8 @@ namespace dxvk {
D3D11_TEXTURE1D_DESC resourceDesc;
static_cast<D3D11Texture1D*>(pResource)->GetDesc(&resourceDesc);
pDesc->Format = resourceDesc.Format;
if (resourceDesc.ArraySize == 1) {
pDesc->ViewDimension = D3D11_RTV_DIMENSION_TEXTURE1D;
pDesc->Texture1D.MipSlice = 0;
@ -1870,6 +1872,8 @@ namespace dxvk {
D3D11_TEXTURE1D_DESC resourceDesc;
static_cast<D3D11Texture1D*>(pResource)->GetDesc(&resourceDesc);
pDesc->Format = resourceDesc.Format;
if (resourceDesc.ArraySize == 1) {
pDesc->ViewDimension = D3D11_DSV_DIMENSION_TEXTURE1D;
pDesc->Texture1D.MipSlice = 0;