Package apple.metal.protocol
Interface MTLFunction
-
public interface MTLFunction[@protocol] 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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MTLDevicedevice()[@property] device The device this resource was created against.NSDictionary<java.lang.String,? extends MTLFunctionConstant>functionConstantsDictionary()[@property] functionConstantsDictionary A dictionary containing information about all function contents, keyed by the constant names.longfunctionType()[@property] functionType The overall kind of entry point: compute, vertex, or fragment.java.lang.Stringlabel()[@property] label A string to help identify this object.java.lang.Stringname()[@property] name The name of the function in the shading language.MTLArgumentEncodernewArgumentEncoderWithBufferIndex(long bufferIndex)newArgumentEncoderWithBufferIndex: Creates an argument encoder which will encode arguments matching the layout of the argument buffer at the given bind point index.MTLArgumentEncodernewArgumentEncoderWithBufferIndexReflection(long bufferIndex, org.moe.natj.general.ptr.Ptr<MTLArgument> reflection)newArgumentEncoderWithBufferIndex: Creates an argument encoder which will encode arguments matching the layout of the argument buffer at the given bind point index.longoptions()[@property] options The options this function was created with.longpatchControlPointCount()[@property] patchControlPointCount Returns the number of patch control points if it was specified in the shader.longpatchType()[@property] patchType Returns the patch type.voidsetLabel(java.lang.String value)[@property] label A string to help identify this object.NSArray<? extends MTLAttribute>stageInputAttributes()[@property] stageInputAttributes Returns an array describing the attributesNSArray<? extends MTLVertexAttribute>vertexAttributes()
-
-
-
Method Detail
-
device
MTLDevice device()
[@property] device The device this resource was created against. This resource can only be used with this device.
-
functionConstantsDictionary
NSDictionary<java.lang.String,? extends MTLFunctionConstant> functionConstantsDictionary()
[@property] functionConstantsDictionary A dictionary containing information about all function contents, keyed by the constant names.
-
functionType
long functionType()
[@property] functionType The overall kind of entry point: compute, vertex, or fragment.
-
label
java.lang.String label()
[@property] label A string to help identify this object.
-
name
java.lang.String name()
[@property] name The name of the function in the shading language.
-
patchControlPointCount
long patchControlPointCount()
[@property] patchControlPointCount Returns the number of patch control points if it was specified in the shader. Returns -1 if it was not specified.
-
patchType
long patchType()
[@property] patchType Returns the patch type. MTLPatchTypeNone if it is not a post tessellation vertex shader.
-
setLabel
void setLabel(java.lang.String value)
[@property] label A string to help identify this object.
-
stageInputAttributes
NSArray<? extends MTLAttribute> stageInputAttributes()
[@property] stageInputAttributes Returns an array describing the attributes
-
vertexAttributes
NSArray<? extends MTLVertexAttribute> vertexAttributes()
-
newArgumentEncoderWithBufferIndex
MTLArgumentEncoder newArgumentEncoderWithBufferIndex(long bufferIndex)
newArgumentEncoderWithBufferIndex: Creates an argument encoder which will encode arguments matching the layout of the argument buffer at the given bind point index.
-
newArgumentEncoderWithBufferIndexReflection
MTLArgumentEncoder newArgumentEncoderWithBufferIndexReflection(long bufferIndex, org.moe.natj.general.ptr.Ptr<MTLArgument> reflection)
newArgumentEncoderWithBufferIndex: Creates an argument encoder which will encode arguments matching the layout of the argument buffer at the given bind point index.
-
options
long options()
[@property] options The options this function was created with.
-
-