Trait objc2_metal::MTLVisibleFunctionTable

source ·
pub unsafe trait MTLVisibleFunctionTable: MTLResource + IsRetainable {
    // Provided methods
    unsafe fn gpuResourceID(&self) -> MTLResourceID
       where Self: Sized + Message { ... }
    unsafe fn setFunction_atIndex(
        &self,
        function: Option<&ProtocolObject<dyn MTLFunctionHandle>>,
        index: NSUInteger
    )
       where Self: Sized + Message { ... }
    unsafe fn setFunctions_withRange(
        &self,
        functions: NonNull<*const ProtocolObject<dyn MTLFunctionHandle>>,
        range: NSRange
    )
       where Self: Sized + Message { ... }
}
Available on crate features MTLResource and MTLVisibleFunctionTable only.

Provided Methods§

source

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

Available on crate feature MTLTypes only.
source

unsafe fn setFunction_atIndex( &self, function: Option<&ProtocolObject<dyn MTLFunctionHandle>>, index: NSUInteger )
where Self: Sized + Message,

Available on crate feature MTLFunctionHandle only.
source

unsafe fn setFunctions_withRange( &self, functions: NonNull<*const ProtocolObject<dyn MTLFunctionHandle>>, range: NSRange )
where Self: Sized + Message,

Available on crate feature MTLFunctionHandle only.

Trait Implementations§

source§

impl ProtocolType for dyn MTLVisibleFunctionTable

source§

const NAME: &'static str = "MTLVisibleFunctionTable"

The name of the Objective-C protocol that this type represents.
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 MTLVisibleFunctionTable

Implementations on Foreign Types§

source§

impl<T> MTLVisibleFunctionTable for ProtocolObject<T>

Implementors§