Format
This commit is contained in:
parent
29e6f17978
commit
080af8db24
4 changed files with 10 additions and 12 deletions
|
@ -11,8 +11,6 @@ namespace Ryujinx.Graphics.Gpu.Engine.Threed.ComputeDraw
|
||||||
/// </summary>
|
/// </summary>
|
||||||
class VtgAsComputeContext : IDisposable
|
class VtgAsComputeContext : IDisposable
|
||||||
{
|
{
|
||||||
private const int DummyBufferSize = 16;
|
|
||||||
|
|
||||||
private readonly GpuContext _context;
|
private readonly GpuContext _context;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -97,12 +97,12 @@ namespace Ryujinx.Graphics.Metal
|
||||||
_currentState.ClearLoadAction = clear;
|
_currentState.ClearLoadAction = clear;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void DirtyTextures()
|
public readonly void DirtyTextures()
|
||||||
{
|
{
|
||||||
SignalDirty(DirtyFlags.Textures);
|
SignalDirty(DirtyFlags.Textures);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void DirtyImages()
|
public readonly void DirtyImages()
|
||||||
{
|
{
|
||||||
SignalDirty(DirtyFlags.Images);
|
SignalDirty(DirtyFlags.Images);
|
||||||
}
|
}
|
||||||
|
@ -830,7 +830,7 @@ namespace Ryujinx.Graphics.Metal
|
||||||
SignalDirty(DirtyFlags.Images);
|
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);
|
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);
|
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);
|
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);
|
ref EncoderState.ArrayRef<ImageArray> arrayRef = ref GetArrayRef(ref _currentState.ImageArrayExtraRefs, setIndex - MetalRenderer.TotalSets);
|
||||||
|
|
||||||
|
|
|
@ -15,8 +15,8 @@ namespace Ryujinx.Graphics.Metal
|
||||||
class Program : IProgram
|
class Program : IProgram
|
||||||
{
|
{
|
||||||
private ProgramLinkStatus _status;
|
private ProgramLinkStatus _status;
|
||||||
private ShaderSource[] _shaders;
|
private readonly ShaderSource[] _shaders;
|
||||||
private GCHandle[] _handles;
|
private readonly GCHandle[] _handles;
|
||||||
private int _successCount;
|
private int _successCount;
|
||||||
|
|
||||||
public MTLFunction VertexFunction;
|
public MTLFunction VertexFunction;
|
||||||
|
|
Loading…
Reference in a new issue