MTLFunction_Extensions Class

Definition

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

public static class MTLFunction_Extensions
type MTLFunction_Extensions = class
Inheritance
MTLFunction_Extensions

Remarks

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

Methods

CreateArgumentEncoder(IMTLFunction, nuint)

Creates a new argument encoder for the specified buffer index.

CreateArgumentEncoder(IMTLFunction, nuint, MTLArgument)

Creates a new argument encoder for the specified buffer index and reflection argument.

GetFunctionConstants(IMTLFunction)
GetLabel(IMTLFunction)
GetPatchControlPointCount(IMTLFunction)
GetPatchType(IMTLFunction)
GetStageInputAttributes(IMTLFunction)
SetLabel(IMTLFunction, String)

Applies to