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 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
      • 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.