mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-12-27 11:03:04 +00:00
Rebase
This commit is contained in:
parent
997393bc65
commit
f4190bd95a
1 changed files with 2 additions and 5 deletions
|
@ -79,11 +79,7 @@ namespace Ryujinx.Graphics.Metal
|
||||||
public BufferHandle CreateBuffer(int size, BufferAccess access)
|
public BufferHandle CreateBuffer(int size, BufferAccess access)
|
||||||
{
|
{
|
||||||
var buffer = _device.NewBuffer((ulong)size, MTLResourceOptions.ResourceStorageModeShared);
|
var buffer = _device.NewBuffer((ulong)size, MTLResourceOptions.ResourceStorageModeShared);
|
||||||
|
buffer.SetPurgeableState(MTLPurgeableState.NonVolatile);
|
||||||
if (access == BufferAccess.FlushPersistent)
|
|
||||||
{
|
|
||||||
buffer.SetPurgeableState(MTLPurgeableState.NonVolatile);
|
|
||||||
}
|
|
||||||
|
|
||||||
var bufferPtr = buffer.NativePtr;
|
var bufferPtr = buffer.NativePtr;
|
||||||
return Unsafe.As<IntPtr, BufferHandle>(ref bufferPtr);
|
return Unsafe.As<IntPtr, BufferHandle>(ref bufferPtr);
|
||||||
|
@ -140,6 +136,7 @@ namespace Ryujinx.Graphics.Metal
|
||||||
return new Capabilities(
|
return new Capabilities(
|
||||||
api: TargetApi.Metal,
|
api: TargetApi.Metal,
|
||||||
vendorName: HardwareInfoTools.GetVendor(),
|
vendorName: HardwareInfoTools.GetVendor(),
|
||||||
|
SystemMemoryType.UnifiedMemory,
|
||||||
hasFrontFacingBug: false,
|
hasFrontFacingBug: false,
|
||||||
hasVectorIndexingBug: true,
|
hasVectorIndexingBug: true,
|
||||||
needsFragmentOutputSpecialization: true,
|
needsFragmentOutputSpecialization: true,
|
||||||
|
|
Loading…
Reference in a new issue