mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 05:39:58 +00:00
Merge pull request #113585 from brycehutchings/fix_d3d12_array_multisample
Fix bad D3D12 SRV breaking MSAA with OpenXR
This commit is contained in:
commit
4b448fdd19
1 changed files with 1 additions and 1 deletions
|
|
@ -1687,7 +1687,7 @@ RDD::TextureID RenderingDeviceDriverD3D12::_texture_create_shared_from_slice(Tex
|
|||
uav_desc.Texture2DArray.ArraySize = 1;
|
||||
uav_desc.Texture2DArray.PlaneSlice = 0;
|
||||
} else if ((srv_desc.ViewDimension == D3D12_SRV_DIMENSION_TEXTURE2DMSARRAY || (srv_desc.ViewDimension == D3D12_SRV_DIMENSION_TEXTURE2DMS && p_layer))) {
|
||||
srv_desc.ViewDimension = D3D12_SRV_DIMENSION_TEXTURE2DARRAY;
|
||||
srv_desc.ViewDimension = D3D12_SRV_DIMENSION_TEXTURE2DMSARRAY;
|
||||
srv_desc.Texture2DMSArray.FirstArraySlice = p_layer;
|
||||
srv_desc.Texture2DMSArray.ArraySize = 1;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue