MTL4BinaryFunction

Trait MTL4BinaryFunction 

Source
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§

Source

fn name(&self) -> Option<Retained<NSString>>
where Self: Sized + Message,

Obtains the optional name of this binary function.

Source

fn functionType(&self) -> MTLFunctionType
where Self: Sized + Message,

Available on crate feature MTLLibrary only.

Describes the type of this binary function.

Trait Implementations§

Source§

impl ProtocolType for dyn MTL4BinaryFunction

Source§

const NAME: &'static str = "MTL4BinaryFunction"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn MTL4BinaryFunction

Implementations on Foreign Types§

Source§

impl<T> MTL4BinaryFunction for ProtocolObject<T>

Implementors§