IMTLResource Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
System protocol for for allocated segments of GPU memory.
[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
- Derived
- Attributes
- Implements
Properties
CpuCacheMode | |
Device | |
Handle |
Handle (pointer) to the unmanaged object representation. (Inherited from INativeObject) |
Label |
Methods
SetPurgeableState(MTLPurgeableState) |
Extension Methods
GetAllocatedSize(IMTLResource) |
Returns the allocated size of the resource. |
GetHeap(IMTLResource) |
Returns the heap that sub-allocated the resource. |
GetIsAliasable(IMTLResource) |
Returns a Boolean value that tells whether future sub-allocations can alias the resource's memory. |
GetStorageMode(IMTLResource) |
Returns a description of the location and permissions of the resource. |
MakeAliasable(IMTLResource) |
Makes the resource aliasable. |