mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-15 19:28:29 +12:00
fix: shader errors
This commit is contained in:
parent
e4abb305ac
commit
a2d15858ad
8 changed files with 106 additions and 80 deletions
|
@ -2,6 +2,7 @@
|
|||
#include "Cafe/HW/Latte/Renderer/Metal/LatteTextureMtl.h"
|
||||
#include "Cafe/HW/Latte/Renderer/Metal/MetalRenderer.h"
|
||||
#include "Cafe/HW/Latte/Renderer/Metal/LatteToMtl.h"
|
||||
#include "Metal/MTLTexture.hpp"
|
||||
|
||||
LatteTextureViewMtl::LatteTextureViewMtl(MetalRenderer* mtlRenderer, LatteTextureMtl* texture, Latte::E_DIM dim, Latte::E_GX2SURFFMT format, sint32 firstMip, sint32 mipCount, sint32 firstSlice, sint32 sliceCount)
|
||||
: LatteTextureView(texture, firstMip, mipCount, firstSlice, sliceCount, dim, format), m_mtlr(mtlRenderer), m_format(format)
|
||||
|
@ -39,8 +40,7 @@ LatteTextureViewMtl::LatteTextureViewMtl(MetalRenderer* mtlRenderer, LatteTextur
|
|||
if (textureType == MTL::TextureType3D)
|
||||
{
|
||||
cemu_assert_debug(firstMip == 0);
|
||||
// TODO: uncomment
|
||||
//cemu_assert_debug(this->numSlice == baseTexture->depth);
|
||||
cemu_assert_debug(this->numSlice == baseTexture->depth);
|
||||
baseLayer = 0;
|
||||
layerCount = 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue