This commit is contained in:
Isaac Marovitz 2024-05-23 14:47:05 -04:00
parent a42b70890b
commit 854c25e0a6
No known key found for this signature in database
GPG Key ID: 97250B2B09A132E1
1 changed files with 2 additions and 5 deletions

View File

@ -79,11 +79,7 @@ namespace Ryujinx.Graphics.Metal
public BufferHandle CreateBuffer(int size, BufferAccess access)
{
var buffer = _device.NewBuffer((ulong)size, MTLResourceOptions.ResourceStorageModeShared);
if (access == BufferAccess.FlushPersistent)
{
buffer.SetPurgeableState(MTLPurgeableState.NonVolatile);
}
buffer.SetPurgeableState(MTLPurgeableState.NonVolatile);
var bufferPtr = buffer.NativePtr;
return Unsafe.As<IntPtr, BufferHandle>(ref bufferPtr);
@ -140,6 +136,7 @@ namespace Ryujinx.Graphics.Metal
return new Capabilities(
api: TargetApi.Metal,
vendorName: HardwareInfoTools.GetVendor(),
SystemMemoryType.UnifiedMemory,
hasFrontFacingBug: false,
hasVectorIndexingBug: true,
needsFragmentOutputSpecialization: true,