Modifica

Condividi tramite


MTLResource_Extensions Class

Definition

Extension methods to the IMTLResource interface to support all the methods from the IMTLResource protocol.

public static class MTLResource_Extensions
type MTLResource_Extensions = class
Inheritance
MTLResource_Extensions

Remarks

The extension methods for IMTLResource allow developers to treat instances of the interface as having all the optional methods of the original IMTLResource protocol. Since the interface only contains the required members, these extension methods allow developers to call the optional members of the protocol.

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.

Applies to