This commit is contained in:
Isaac Marovitz 2024-08-03 17:08:50 +01:00 committed by Isaac Marovitz
parent 29e6f17978
commit 080af8db24
4 changed files with 10 additions and 12 deletions

View file

@ -11,8 +11,6 @@ namespace Ryujinx.Graphics.Gpu.Engine.Threed.ComputeDraw
/// </summary>
class VtgAsComputeContext : IDisposable
{
private const int DummyBufferSize = 16;
private readonly GpuContext _context;
/// <summary>

View file

@ -97,12 +97,12 @@ namespace Ryujinx.Graphics.Metal
_currentState.ClearLoadAction = clear;
}
public void DirtyTextures()
public readonly void DirtyTextures()
{
SignalDirty(DirtyFlags.Textures);
}
public void DirtyImages()
public readonly void DirtyImages()
{
SignalDirty(DirtyFlags.Images);
}
@ -830,7 +830,7 @@ namespace Ryujinx.Graphics.Metal
SignalDirty(DirtyFlags.Images);
}
public void UpdateTextureArray(ShaderStage stage, int binding, TextureArray array)
public readonly void UpdateTextureArray(ShaderStage stage, int binding, TextureArray array)
{
ref EncoderState.ArrayRef<TextureArray> arrayRef = ref GetArrayRef(ref _currentState.TextureArrayRefs, binding, ArrayGrowthSize);
@ -842,7 +842,7 @@ namespace Ryujinx.Graphics.Metal
}
}
public void UpdateTextureArraySeparate(ShaderStage stage, int setIndex, TextureArray array)
public readonly void UpdateTextureArraySeparate(ShaderStage stage, int setIndex, TextureArray array)
{
ref EncoderState.ArrayRef<TextureArray> arrayRef = ref GetArrayRef(ref _currentState.TextureArrayExtraRefs, setIndex - MetalRenderer.TotalSets);
@ -854,7 +854,7 @@ namespace Ryujinx.Graphics.Metal
}
}
public void UpdateImageArray(ShaderStage stage, int binding, ImageArray array)
public readonly void UpdateImageArray(ShaderStage stage, int binding, ImageArray array)
{
ref EncoderState.ArrayRef<ImageArray> arrayRef = ref GetArrayRef(ref _currentState.ImageArrayRefs, binding, ArrayGrowthSize);
@ -866,7 +866,7 @@ namespace Ryujinx.Graphics.Metal
}
}
public void UpdateImageArraySeparate(ShaderStage stage, int setIndex, ImageArray array)
public readonly void UpdateImageArraySeparate(ShaderStage stage, int setIndex, ImageArray array)
{
ref EncoderState.ArrayRef<ImageArray> arrayRef = ref GetArrayRef(ref _currentState.ImageArrayExtraRefs, setIndex - MetalRenderer.TotalSets);

View file

@ -15,8 +15,8 @@ namespace Ryujinx.Graphics.Metal
class Program : IProgram
{
private ProgramLinkStatus _status;
private ShaderSource[] _shaders;
private GCHandle[] _handles;
private readonly ShaderSource[] _shaders;
private readonly GCHandle[] _handles;
private int _successCount;
public MTLFunction VertexFunction;