mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-15 19:28:29 +12:00
rework command encoder system
This commit is contained in:
parent
89a2c23dd7
commit
f01130022a
8 changed files with 149 additions and 77 deletions
|
@ -52,7 +52,7 @@ LatteTextureViewMtl::LatteTextureViewMtl(MetalRenderer* mtlRenderer, LatteTextur
|
|||
|
||||
// TODO: swizzle
|
||||
|
||||
auto formatInfo = GetMtlPixelFormatInfo(format);
|
||||
auto formatInfo = GetMtlPixelFormatInfo(format, texture->IsDepth());
|
||||
m_texture = texture->GetTexture()->newTextureView(formatInfo.pixelFormat, textureType, NS::Range::Make(baseLevel, levelCount), NS::Range::Make(baseLayer, layerCount));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue