Properly register TextureBuffer usage + Store Auto ref

This commit is contained in:
Isaac Marovitz 2024-07-28 18:46:58 +01:00 committed by Isaac Marovitz
parent 810b5792a8
commit e8dda2d5ef
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))