mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 07:53:26 +00:00
Clamp minimum size of 3D texture view in D3D12.
This commit is contained in:
parent
fcd1cf8d57
commit
1ce55b946c
1 changed files with 1 additions and 1 deletions
|
@ -2848,7 +2848,7 @@ D3D12_UNORDERED_ACCESS_VIEW_DESC RenderingDeviceDriverD3D12::_make_ranged_uav_fo
|
||||||
} break;
|
} break;
|
||||||
case D3D12_UAV_DIMENSION_TEXTURE3D: {
|
case D3D12_UAV_DIMENSION_TEXTURE3D: {
|
||||||
uav_desc.Texture3D.MipSlice = mip;
|
uav_desc.Texture3D.MipSlice = mip;
|
||||||
uav_desc.Texture3D.WSize >>= p_mipmap_offset;
|
uav_desc.Texture3D.WSize = MAX(uav_desc.Texture3D.WSize >> p_mipmap_offset, 1U);
|
||||||
} break;
|
} break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue