Interface MTLLibrary


  • public interface MTLLibrary
    • Method Detail

      • device

        MTLDevice device()
        [@property] device The device this resource was created against. This resource can only be used with this device.
      • functionNames

        NSArray<java.lang.String> functionNames()
        [@property] functionNames The array contains NSString objects, with the name of each function in library.
      • label

        java.lang.String label()
        [@property] label A string to help identify this object.
      • newFunctionWithName

        MTLFunction newFunctionWithName​(java.lang.String functionName)
        newFunctionWithName Returns a pointer to a function object, return nil if the function is not found in the library.
      • newFunctionWithNameConstantValuesCompletionHandler

        void newFunctionWithNameConstantValuesCompletionHandler​(java.lang.String name,
                                                                MTLFunctionConstantValues constantValues,
                                                                MTLLibrary.Block_newFunctionWithNameConstantValuesCompletionHandler completionHandler)
        newFunctionWithName:constantValues:completionHandler: Returns a pointer to a function object obtained by applying the constant values to the named function. This method is asynchronous since it is will call the compiler.
      • newFunctionWithNameConstantValuesError

        MTLFunction newFunctionWithNameConstantValuesError​(java.lang.String name,
                                                           MTLFunctionConstantValues constantValues,
                                                           org.moe.natj.general.ptr.Ptr<NSError> error)
        newFunctionWithName:constantValues:error: Returns a pointer to a function object obtained by applying the constant values to the named function. This method will call the compiler. Use newFunctionWithName:constantValues:completionHandler: to avoid waiting on the compiler.
      • setLabel

        void setLabel​(java.lang.String value)
        [@property] label A string to help identify this object.
      • installName

        java.lang.String installName()
        [@property] installName The installName provided when this MTLLibrary was created. Always nil if the type of the library is not MTLLibraryTypeDynamic.
        See Also:
        MTLCompileOptions
      • newFunctionWithDescriptorError

        MTLFunction newFunctionWithDescriptorError​(MTLFunctionDescriptor descriptor,
                                                   org.moe.natj.general.ptr.Ptr<NSError> error)
        newFunctionWithDescriptor:error: Create a new MTLFunction object synchronously.
      • newIntersectionFunctionWithDescriptorError

        MTLFunction newIntersectionFunctionWithDescriptorError​(MTLIntersectionFunctionDescriptor descriptor,
                                                               org.moe.natj.general.ptr.Ptr<NSError> error)
        newIntersectionFunctionWithDescriptor:error: Create a new MTLFunction object synchronously.
      • type

        long type()
        [@property] type The library type provided when this MTLLibrary was created. Libraries with MTLLibraryTypeExecutable can be used to obtain MTLFunction from. Libraries with MTLLibraryTypeDynamic can be used to resolve external references in other MTLLibrary from.
        See Also:
        MTLCompileOptions