mirror of
https://github.com/cemu-project/Cemu.git
synced 2024-11-29 04:24:17 +01:00
only set array length for texture arrays
This commit is contained in:
parent
fda2f40640
commit
9095035532
@ -64,15 +64,11 @@ LatteTextureMtl::LatteTextureMtl(class MetalRenderer* mtlRenderer, Latte::E_DIM
|
||||
{
|
||||
desc->setDepth(effectiveBaseDepth);
|
||||
}
|
||||
else if (textureType == MTL::TextureTypeCube)
|
||||
{
|
||||
// Do nothing
|
||||
}
|
||||
else if (textureType == MTL::TextureTypeCubeArray)
|
||||
{
|
||||
desc->setArrayLength(effectiveBaseDepth / 6);
|
||||
}
|
||||
else
|
||||
else if (textureType == MTL::TextureType2DArray)
|
||||
{
|
||||
desc->setArrayLength(effectiveBaseDepth);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user