IMTLResource 接口
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
分配的 GPU 内存段的系统协议。
[Foundation.Protocol(Name="MTLResource", WrapperType=typeof(Metal.MTLResourceWrapper))]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 11, ObjCRuntime.PlatformArchitecture.Arch64, null)]
public interface IMTLResource : IDisposable, ObjCRuntime.INativeObject
type IMTLResource = interface
interface INativeObject
interface IDisposable
- 派生
- 属性
- 实现
属性
CpuCacheMode |
分配的 GPU 内存段的系统协议。 |
Device |
分配的 GPU 内存段的系统协议。 |
Handle |
处理指向非托管对象表示形式的 (指针) 。 (继承自 INativeObject) |
Label |
分配的 GPU 内存段的系统协议。 |
方法
SetPurgeableState(MTLPurgeableState) |
分配的 GPU 内存段的系统协议。 |
扩展方法
GetAllocatedSize(IMTLResource) |
返回已分配的资源大小。 |
GetHeap(IMTLResource) |
返回子分配资源的堆。 |
GetIsAliasable(IMTLResource) |
返回一个布尔值,该值指示将来的子分配是否可以为资源的内存别名。 |
GetStorageMode(IMTLResource) |
返回资源位置和权限的说明。 |
MakeAliasable(IMTLResource) |
使资源可别名化。 |