public interface MTLFunction
A handle to intermediate code used as inputs for either a MTLComputePipelineState or a MTLRenderPipelineState.
MTLFunction is a single vertex shader, fragment shader, or compute function. A Function can only be used with the device that it was created against.
| Modifier and Type | Method and Description |
|---|---|
MTLDevice |
device()
[@property] device
|
NSDictionary<java.lang.String,? extends MTLFunctionConstant> |
functionConstantsDictionary()
[@property] functionConstantsDictionary
|
long |
functionType()
[@property] functionType
|
java.lang.String |
label()
[@property] label
|
java.lang.String |
name()
[@property] name
|
MTLArgumentEncoder |
newArgumentEncoderWithBufferIndex(long bufferIndex)
newArgumentEncoderWithBufferIndex:
|
MTLArgumentEncoder |
newArgumentEncoderWithBufferIndexReflection(long bufferIndex,
org.moe.natj.general.ptr.Ptr<MTLArgument> reflection)
newArgumentEncoderWithBufferIndex:
|
long |
options()
[@property] options
|
long |
patchControlPointCount()
[@property] patchControlPointCount
|
long |
patchType()
[@property] patchType
|
void |
setLabel(java.lang.String value)
[@property] label
|
NSArray<? extends MTLAttribute> |
stageInputAttributes()
[@property] stageInputAttributes
|
NSArray<? extends MTLVertexAttribute> |
vertexAttributes() |
MTLDevice device()
The device this resource was created against. This resource can only be used with this device.
NSDictionary<java.lang.String,? extends MTLFunctionConstant> functionConstantsDictionary()
A dictionary containing information about all function contents, keyed by the constant names.
long functionType()
The overall kind of entry point: compute, vertex, or fragment.
java.lang.String label()
A string to help identify this object.
java.lang.String name()
The name of the function in the shading language.
long patchControlPointCount()
Returns the number of patch control points if it was specified in the shader. Returns -1 if it was not specified.
long patchType()
Returns the patch type. MTLPatchTypeNone if it is not a post tessellation vertex shader.
void setLabel(java.lang.String value)
A string to help identify this object.
NSArray<? extends MTLAttribute> stageInputAttributes()
Returns an array describing the attributes
NSArray<? extends MTLVertexAttribute> vertexAttributes()
MTLArgumentEncoder newArgumentEncoderWithBufferIndex(long bufferIndex)
Creates an argument encoder which will encode arguments matching the layout of the argument buffer at the given bind point index.
MTLArgumentEncoder newArgumentEncoderWithBufferIndexReflection(long bufferIndex, org.moe.natj.general.ptr.Ptr<MTLArgument> reflection)
Creates an argument encoder which will encode arguments matching the layout of the argument buffer at the given bind point index.
long options()
The options this function was created with.