Bagikan melalui


IMTLHeap Antarmuka

Definisi

[Foundation.Protocol(Name="MTLHeap", WrapperType=typeof(Metal.MTLHeapWrapper))]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 13, ObjCRuntime.PlatformArchitecture.Arch64, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public interface IMTLHeap : IDisposable, ObjCRuntime.INativeObject
type IMTLHeap = interface
    interface INativeObject
    interface IDisposable
Atribut
Penerapan

Properti

CpuCacheMode
Device
Handle

Tangani (penunjuk) ke representasi objek yang tidak dikelola.

(Diperoleh dari INativeObject)
Label
Size
StorageMode
UsedSize

Metode

CreateBuffer(nuint, MTLResourceOptions)
CreateTexture(MTLTextureDescriptor)
GetMaxAvailableSize(nuint)
SetPurgeableState(MTLPurgeableState)

Metode Ekstensi

GetCurrentAllocatedSize(IMTLHeap)

Mengembalikan ukuran tumpukan yang dialokasikan saat ini.

Berlaku untuk