mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-01-09 00:20:39 +01:00
disable shader write usage on textures
This commit is contained in:
parent
491ac694ab
commit
45737e82d9
@ -76,9 +76,7 @@ LatteTextureMtl::LatteTextureMtl(class MetalRenderer* mtlRenderer, Latte::E_DIM
|
|||||||
auto pixelFormat = GetMtlPixelFormat(format, isDepth, m_mtlr->GetPixelFormatSupport());
|
auto pixelFormat = GetMtlPixelFormat(format, isDepth, m_mtlr->GetPixelFormatSupport());
|
||||||
desc->setPixelFormat(pixelFormat);
|
desc->setPixelFormat(pixelFormat);
|
||||||
|
|
||||||
// HACK: even though the textures are never written to from a shader, we still need to use `ShaderWrite` usage to prevent pink lines over the screen
|
MTL::TextureUsage usage = MTL::TextureUsageShaderRead;
|
||||||
MTL::TextureUsage usage = MTL::TextureUsageShaderRead | MTL::TextureUsageShaderWrite;
|
|
||||||
// TODO: add more conditions
|
|
||||||
if (!Latte::IsCompressedFormat(format))
|
if (!Latte::IsCompressedFormat(format))
|
||||||
{
|
{
|
||||||
usage |= MTL::TextureUsageRenderTarget;
|
usage |= MTL::TextureUsageRenderTarget;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user