IMTLHeap 接口

定义

[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
属性
实现

属性

CpuCacheMode
Device
Handle

处理指向非托管对象表示形式的 (指针) 。

(继承自 INativeObject)
Label
Size
StorageMode
UsedSize

方法

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

扩展方法

GetCurrentAllocatedSize(IMTLHeap)

返回堆的当前 allcoated 大小。

适用于