More housekeeping

This commit is contained in:
Isaac Marovitz 2024-06-21 00:29:53 +01:00
commit 481cc55ade
No known key found for this signature in database
GPG key ID: 97250B2B09A132E1
11 changed files with 13 additions and 13 deletions

View file

@ -7,7 +7,7 @@ using System.Runtime.Versioning;
namespace Ryujinx.Graphics.Metal namespace Ryujinx.Graphics.Metal
{ {
[SupportedOSPlatform("macos")] [SupportedOSPlatform("macos")]
public class ComputePipelineCache : StateCache<MTLComputePipelineState, MTLFunction, MTLFunction> class ComputePipelineCache : StateCache<MTLComputePipelineState, MTLFunction, MTLFunction>
{ {
private readonly MTLDevice _device; private readonly MTLDevice _device;

View file

@ -4,7 +4,7 @@ using System.Runtime.Versioning;
namespace Ryujinx.Graphics.Metal namespace Ryujinx.Graphics.Metal
{ {
[SupportedOSPlatform("macos")] [SupportedOSPlatform("macos")]
public struct DepthStencilHash struct DepthStencilHash
{ {
public struct StencilHash public struct StencilHash
{ {
@ -22,7 +22,7 @@ namespace Ryujinx.Graphics.Metal
} }
[SupportedOSPlatform("macos")] [SupportedOSPlatform("macos")]
public class DepthStencilCache : StateCache<MTLDepthStencilState, MTLDepthStencilDescriptor, DepthStencilHash> class DepthStencilCache : StateCache<MTLDepthStencilState, MTLDepthStencilDescriptor, DepthStencilHash>
{ {
private readonly MTLDevice _device; private readonly MTLDevice _device;

View file

@ -5,7 +5,7 @@ using System.Runtime.Versioning;
namespace Ryujinx.Graphics.Metal namespace Ryujinx.Graphics.Metal
{ {
[SupportedOSPlatform("macos")] [SupportedOSPlatform("macos")]
public readonly struct DisposableBuffer : IDisposable readonly struct DisposableBuffer : IDisposable
{ {
public MTLBuffer Value { get; } public MTLBuffer Value { get; }

View file

@ -6,7 +6,7 @@ using System.Threading;
namespace Ryujinx.Graphics.Metal namespace Ryujinx.Graphics.Metal
{ {
[SupportedOSPlatform("macos")] [SupportedOSPlatform("macos")]
public class FenceHolder : IDisposable class FenceHolder : IDisposable
{ {
private MTLCommandBuffer _fence; private MTLCommandBuffer _fence;
private int _referenceCount; private int _referenceCount;

View file

@ -18,7 +18,7 @@ namespace Ryujinx.Graphics.Metal
} }
[SupportedOSPlatform("macos")] [SupportedOSPlatform("macos")]
public class Pipeline : IPipeline, IDisposable class Pipeline : IPipeline, IDisposable
{ {
private readonly MTLDevice _device; private readonly MTLDevice _device;
private readonly MetalRenderer _renderer; private readonly MetalRenderer _renderer;

View file

@ -7,7 +7,7 @@ using System.Runtime.Versioning;
namespace Ryujinx.Graphics.Metal namespace Ryujinx.Graphics.Metal
{ {
[SupportedOSPlatform("macos")] [SupportedOSPlatform("macos")]
public struct RenderPipelineHash struct RenderPipelineHash
{ {
public MTLFunction VertexFunction; public MTLFunction VertexFunction;
public MTLFunction FragmentFunction; public MTLFunction FragmentFunction;
@ -162,7 +162,7 @@ namespace Ryujinx.Graphics.Metal
} }
[SupportedOSPlatform("macos")] [SupportedOSPlatform("macos")]
public class RenderPipelineCache : StateCache<MTLRenderPipelineState, MTLRenderPipelineDescriptor, RenderPipelineHash> class RenderPipelineCache : StateCache<MTLRenderPipelineState, MTLRenderPipelineDescriptor, RenderPipelineHash>
{ {
private readonly MTLDevice _device; private readonly MTLDevice _device;

View file

@ -5,7 +5,7 @@ using System.Runtime.Versioning;
namespace Ryujinx.Graphics.Metal namespace Ryujinx.Graphics.Metal
{ {
[SupportedOSPlatform("macos")] [SupportedOSPlatform("macos")]
public abstract class StateCache<T, TDescriptor, THash> : IDisposable where T : IDisposable abstract class StateCache<T, TDescriptor, THash> : IDisposable where T : IDisposable
{ {
private readonly Dictionary<THash, T> _cache = new(); private readonly Dictionary<THash, T> _cache = new();

View file

@ -5,7 +5,7 @@ using System.Runtime.Versioning;
namespace Ryujinx.Graphics.Metal namespace Ryujinx.Graphics.Metal
{ {
[SupportedOSPlatform("macos")] [SupportedOSPlatform("macos")]
public class StringHelper class StringHelper
{ {
public static NSString NSString(string source) public static NSString NSString(string source)
{ {

View file

@ -7,7 +7,7 @@ using System.Runtime.Versioning;
namespace Ryujinx.Graphics.Metal namespace Ryujinx.Graphics.Metal
{ {
[SupportedOSPlatform("macos")] [SupportedOSPlatform("macos")]
public class SyncManager class SyncManager
{ {
private class SyncHandle private class SyncHandle
{ {

View file

@ -8,7 +8,7 @@ using System.Runtime.Versioning;
namespace Ryujinx.Graphics.Metal namespace Ryujinx.Graphics.Metal
{ {
[SupportedOSPlatform("macos")] [SupportedOSPlatform("macos")]
public class Texture : TextureBase, ITexture class Texture : TextureBase, ITexture
{ {
public Texture(MTLDevice device, MetalRenderer renderer, Pipeline pipeline, TextureCreateInfo info) : base(device, renderer, pipeline, info) public Texture(MTLDevice device, MetalRenderer renderer, Pipeline pipeline, TextureCreateInfo info) : base(device, renderer, pipeline, info)
{ {

View file

@ -6,7 +6,7 @@ using System.Runtime.Versioning;
namespace Ryujinx.Graphics.Metal namespace Ryujinx.Graphics.Metal
{ {
[SupportedOSPlatform("macos")] [SupportedOSPlatform("macos")]
public abstract class TextureBase : IDisposable abstract class TextureBase : IDisposable
{ {
private bool _disposed; private bool _disposed;