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:
parent
ec59389527
commit
c7acfb667f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user