pub unsafe trait MTL4BinaryFunction:
NSObjectProtocol
+ Send
+ Sync {
// Provided methods
fn name(&self) -> Option<Retained<NSString>>
where Self: Sized + Message { ... }
fn functionType(&self) -> MTLFunctionType
where Self: Sized + Message { ... }
}Available on crate feature
MTL4BinaryFunction only.Expand description
Represents a binary function.
A binary function is a shader that you precompile from Metal IR to GPU machine code.
See also Apple’s documentation
Provided Methods§
Sourcefn name(&self) -> Option<Retained<NSString>>
fn name(&self) -> Option<Retained<NSString>>
Obtains the optional name of this binary function.
Sourcefn functionType(&self) -> MTLFunctionType
Available on crate feature MTLLibrary only.
fn functionType(&self) -> MTLFunctionType
MTLLibrary only.Describes the type of this binary function.