mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-04-15 12:51:29 -06: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