public interface MTLLibrary
| Modifier and Type | Interface and Description |
|---|---|
static interface |
MTLLibrary.Block_newFunctionWithDescriptorCompletionHandler |
static interface |
MTLLibrary.Block_newFunctionWithNameConstantValuesCompletionHandler |
static interface |
MTLLibrary.Block_newIntersectionFunctionWithDescriptorCompletionHandler |
| Modifier and Type | Method and Description |
|---|---|
MTLDevice |
device()
[@property] device
|
NSArray<java.lang.String> |
functionNames()
[@property] functionNames
|
java.lang.String |
installName()
[@property] installName
|
java.lang.String |
label()
[@property] label
|
void |
newFunctionWithDescriptorCompletionHandler(MTLFunctionDescriptor descriptor,
MTLLibrary.Block_newFunctionWithDescriptorCompletionHandler completionHandler)
newFunctionWithDescriptor:completionHandler:
|
MTLFunction |
newFunctionWithDescriptorError(MTLFunctionDescriptor descriptor,
org.moe.natj.general.ptr.Ptr<NSError> error)
newFunctionWithDescriptor:error:
|
MTLFunction |
newFunctionWithName(java.lang.String functionName)
newFunctionWithName
|
void |
newFunctionWithNameConstantValuesCompletionHandler(java.lang.String name,
MTLFunctionConstantValues constantValues,
MTLLibrary.Block_newFunctionWithNameConstantValuesCompletionHandler completionHandler)
newFunctionWithName:constantValues:completionHandler:
|
MTLFunction |
newFunctionWithNameConstantValuesError(java.lang.String name,
MTLFunctionConstantValues constantValues,
org.moe.natj.general.ptr.Ptr<NSError> error)
newFunctionWithName:constantValues:error:
|
void |
newIntersectionFunctionWithDescriptorCompletionHandler(MTLIntersectionFunctionDescriptor descriptor,
MTLLibrary.Block_newIntersectionFunctionWithDescriptorCompletionHandler completionHandler)
newIntersectionFunctionWithDescriptor:completionHandler:
|
MTLFunction |
newIntersectionFunctionWithDescriptorError(MTLIntersectionFunctionDescriptor descriptor,
org.moe.natj.general.ptr.Ptr<NSError> error)
newIntersectionFunctionWithDescriptor:error:
|
void |
setLabel(java.lang.String value)
[@property] label
|
long |
type()
[@property] type
|
MTLDevice device()
The device this resource was created against. This resource can only be used with this device.
NSArray<java.lang.String> functionNames()
The array contains NSString objects, with the name of each function in library.
java.lang.String label()
A string to help identify this object.
MTLFunction newFunctionWithName(java.lang.String functionName)
Returns a pointer to a function object, return nil if the function is not found in the library.
void newFunctionWithNameConstantValuesCompletionHandler(java.lang.String name,
MTLFunctionConstantValues constantValues,
MTLLibrary.Block_newFunctionWithNameConstantValuesCompletionHandler 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.
MTLFunction newFunctionWithNameConstantValuesError(java.lang.String name, MTLFunctionConstantValues constantValues, org.moe.natj.general.ptr.Ptr<NSError> 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.
void setLabel(java.lang.String value)
A string to help identify this object.
java.lang.String installName()
The installName provided when this MTLLibrary was created.
Always nil if the type of the library is not MTLLibraryTypeDynamic.
MTLCompileOptionsvoid newFunctionWithDescriptorCompletionHandler(MTLFunctionDescriptor descriptor, MTLLibrary.Block_newFunctionWithDescriptorCompletionHandler completionHandler)
Create a new MTLFunction object asynchronously.
MTLFunction newFunctionWithDescriptorError(MTLFunctionDescriptor descriptor, org.moe.natj.general.ptr.Ptr<NSError> error)
Create a new MTLFunction object synchronously.
void newIntersectionFunctionWithDescriptorCompletionHandler(MTLIntersectionFunctionDescriptor descriptor, MTLLibrary.Block_newIntersectionFunctionWithDescriptorCompletionHandler completionHandler)
Create a new MTLFunction object asynchronously.
MTLFunction newIntersectionFunctionWithDescriptorError(MTLIntersectionFunctionDescriptor descriptor, org.moe.natj.general.ptr.Ptr<NSError> error)
Create a new MTLFunction object synchronously.
long 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.
MTLCompileOptions