Properly register TextureBuffer usage + Store Auto ref

This commit is contained in:
Isaac Marovitz
2024-07-28 18:46:58 +01:00
committed by Evan Husted
parent 45c99dbfa8
commit 421ba5448a
2 changed files with 16 additions and 10 deletions

View File

@@ -1133,6 +1133,11 @@ namespace Ryujinx.Graphics.Metal
continue;
}
if (storage is TextureBuffer textureBuffer)
{
textureBuffer.RebuildStorage(false);
}
var mtlTexture = storage.GetHandle();
MTLRenderStages renderStages = 0;
@@ -1345,6 +1350,11 @@ namespace Ryujinx.Graphics.Metal
continue;
}
if (storage is TextureBuffer textureBuffer)
{
textureBuffer.RebuildStorage(false);
}
var mtlTexture = storage.GetHandle();
if (segment.Stages.HasFlag(ResourceStages.Compute))