mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-01-30 10:11:33 -08:00
Rebase
This commit is contained in:
parent
997393bc65
commit
f4190bd95a
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user