renderer_d3d11 fix compute shader input image cubemap format transformation (#2983)
This commit is contained in:
parent
7911b10c07
commit
acedbf0af0
@ -3255,22 +3255,10 @@ namespace bgfx { namespace d3d11
|
||||
break;
|
||||
|
||||
case TextureD3D11::TextureCube:
|
||||
if (_compute)
|
||||
{
|
||||
desc.ViewDimension = D3D11_SRV_DIMENSION_TEXTURE2DARRAY;
|
||||
desc.Texture2DArray.MostDetailedMip = _mip;
|
||||
desc.Texture2DArray.MipLevels = 1;
|
||||
desc.Texture2DArray.FirstArraySlice = 0;
|
||||
desc.Texture2DArray.ArraySize = 6;
|
||||
}
|
||||
else
|
||||
{
|
||||
desc.ViewDimension = D3D11_SRV_DIMENSION_TEXTURECUBE;
|
||||
desc.TextureCube.MostDetailedMip = _mip;
|
||||
desc.TextureCube.MipLevels = 1;
|
||||
}
|
||||
desc.ViewDimension = D3D11_SRV_DIMENSION_TEXTURECUBE;
|
||||
desc.TextureCube.MostDetailedMip = _mip;
|
||||
desc.TextureCube.MipLevels = 1;
|
||||
break;
|
||||
|
||||
case TextureD3D11::Texture3D:
|
||||
desc.ViewDimension = D3D11_SRV_DIMENSION_TEXTURE3D;
|
||||
desc.Texture3D.MostDetailedMip = _mip;
|
||||
|
Loading…
Reference in New Issue
Block a user