Interface MTLLibrary


  • public interface MTLLibrary
    API-Since: 8.0
    • Method Detail

      • device

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

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

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

        @Nullable
        @Nullable MTLFunction newFunctionWithName​(@NotNull
                                                  @NotNull 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​(@NotNull
                                                                @NotNull java.lang.String name,
                                                                @NotNull
                                                                @NotNull MTLFunctionConstantValues constantValues,
                                                                @NotNull
                                                                @NotNull 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. API-Since: 10.0
      • newFunctionWithNameConstantValuesError

        @Nullable
        @Nullable MTLFunction newFunctionWithNameConstantValuesError​(@NotNull
                                                                     @NotNull java.lang.String name,
                                                                     @NotNull
                                                                     @NotNull MTLFunctionConstantValues constantValues,
                                                                     @Nullable
                                                                     @Nullable 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. API-Since: 10.0
      • setLabel

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

        @Nullable
        @Nullable 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:
        API-Since: 14.0
      • newFunctionWithDescriptorError

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

        @Nullable
        @Nullable MTLFunction newIntersectionFunctionWithDescriptorError​(@NotNull
                                                                         @NotNull MTLIntersectionFunctionDescriptor descriptor,
                                                                         @Nullable
                                                                         @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        newIntersectionFunctionWithDescriptor:error: Create a new MTLFunction object synchronously. API-Since: 14.0
      • 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:
        API-Since: 14.0