mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-18 04:53:06 +01:00
D3D12: Fixed GPU crash when binding 3D image to compute for RW.
This commit is contained in:
@@ -4843,7 +4843,7 @@ namespace bgfx { namespace d3d12
|
||||
if (TextureCube == m_type)
|
||||
{
|
||||
m_uavd.ViewDimension = D3D12_UAV_DIMENSION_TEXTURE2DARRAY;
|
||||
m_uavd.Texture2DArray.MipSlice = 0;
|
||||
m_uavd.Texture2DArray.MipSlice = 0;
|
||||
m_uavd.Texture2DArray.ArraySize = 6;
|
||||
}
|
||||
|
||||
@@ -4860,7 +4860,7 @@ namespace bgfx { namespace d3d12
|
||||
m_uavd.ViewDimension = D3D12_UAV_DIMENSION_TEXTURE3D;
|
||||
m_uavd.Texture3D.MipSlice = 0;
|
||||
m_uavd.Texture3D.FirstWSlice = 0;
|
||||
m_uavd.Texture3D.WSize = 0;
|
||||
m_uavd.Texture3D.WSize = m_depth;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user