MTLFunctionHandle

Trait MTLFunctionHandle 

Source
pub unsafe trait MTLFunctionHandle:
    NSObjectProtocol
    + Send
    + Sync {
    // Provided methods
    fn functionType(&self) -> MTLFunctionType
       where Self: Sized + Message { ... }
    fn name(&self) -> Retained<NSString>
       where Self: Sized + Message { ... }
    fn device(&self) -> Retained<ProtocolObject<dyn MTLDevice>>
       where Self: Sized + Message { ... }
    fn gpuResourceID(&self) -> MTLResourceID
       where Self: Sized + Message { ... }
}
Available on crate feature MTLFunctionHandle only.
Expand description

Provided Methods§

Source

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

Available on crate feature MTLLibrary only.
Source

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

Source

fn device(&self) -> Retained<ProtocolObject<dyn MTLDevice>>
where Self: Sized + Message,

Available on crate feature MTLDevice only.
Source

fn gpuResourceID(&self) -> MTLResourceID
where Self: Sized + Message,

Available on crate feature MTLTypes only.

Handle of the GPU resource suitable for storing in an Intersection Function Buffer.

The handle must have been created from an intersection function annotated with the intersection_function_buffer tag.

Trait Implementations§

Source§

impl ProtocolType for dyn MTLFunctionHandle

Source§

const NAME: &'static str = "MTLFunctionHandle"

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 MTLFunctionHandle

Implementations on Foreign Types§

Source§

impl<T> MTLFunctionHandle for ProtocolObject<T>

Implementors§