Trait objc2_metal::MTLIntersectionFunctionTable

source ·
pub unsafe trait MTLIntersectionFunctionTable: MTLResource + IsRetainable {
    // Provided methods
    unsafe fn setBuffer_offset_atIndex(
        &self,
        buffer: Option<&ProtocolObject<dyn MTLBuffer>>,
        offset: NSUInteger,
        index: NSUInteger
    )
       where Self: Sized + Message { ... }
    unsafe fn setBuffers_offsets_withRange(
        &self,
        buffers: NonNull<*const ProtocolObject<dyn MTLBuffer>>,
        offsets: NonNull<NSUInteger>,
        range: NSRange
    )
       where Self: Sized + Message { ... }
    unsafe fn gpuResourceID(&self) -> MTLResourceID
       where Self: Sized + Message { ... }
    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 { ... }
    unsafe fn setOpaqueTriangleIntersectionFunctionWithSignature_atIndex(
        &self,
        signature: MTLIntersectionFunctionSignature,
        index: NSUInteger
    )
       where Self: Sized + Message { ... }
    unsafe fn setOpaqueTriangleIntersectionFunctionWithSignature_withRange(
        &self,
        signature: MTLIntersectionFunctionSignature,
        range: NSRange
    )
       where Self: Sized + Message { ... }
    unsafe fn setOpaqueCurveIntersectionFunctionWithSignature_atIndex(
        &self,
        signature: MTLIntersectionFunctionSignature,
        index: NSUInteger
    )
       where Self: Sized + Message { ... }
    unsafe fn setOpaqueCurveIntersectionFunctionWithSignature_withRange(
        &self,
        signature: MTLIntersectionFunctionSignature,
        range: NSRange
    )
       where Self: Sized + Message { ... }
    unsafe fn setVisibleFunctionTable_atBufferIndex(
        &self,
        function_table: Option<&ProtocolObject<dyn MTLVisibleFunctionTable>>,
        buffer_index: NSUInteger
    )
       where Self: Sized + Message { ... }
    unsafe fn setVisibleFunctionTables_withBufferRange(
        &self,
        function_tables: NonNull<*const ProtocolObject<dyn MTLVisibleFunctionTable>>,
        buffer_range: NSRange
    )
       where Self: Sized + Message { ... }
}
Available on crate features MTLIntersectionFunctionTable and MTLResource only.

Provided Methods§

source

unsafe fn setBuffer_offset_atIndex( &self, buffer: Option<&ProtocolObject<dyn MTLBuffer>>, offset: NSUInteger, index: NSUInteger )
where Self: Sized + Message,

Available on crate feature MTLBuffer only.
source

unsafe fn setBuffers_offsets_withRange( &self, buffers: NonNull<*const ProtocolObject<dyn MTLBuffer>>, offsets: NonNull<NSUInteger>, range: NSRange )
where Self: Sized + Message,

Available on crate feature MTLBuffer only.
source

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

Available on crate feature MTLTypes only.
source

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.
source

unsafe fn setOpaqueTriangleIntersectionFunctionWithSignature_atIndex( &self, signature: MTLIntersectionFunctionSignature, index: NSUInteger )
where Self: Sized + Message,

source

unsafe fn setOpaqueTriangleIntersectionFunctionWithSignature_withRange( &self, signature: MTLIntersectionFunctionSignature, range: NSRange )
where Self: Sized + Message,

source

unsafe fn setOpaqueCurveIntersectionFunctionWithSignature_atIndex( &self, signature: MTLIntersectionFunctionSignature, index: NSUInteger )
where Self: Sized + Message,

source

unsafe fn setOpaqueCurveIntersectionFunctionWithSignature_withRange( &self, signature: MTLIntersectionFunctionSignature, range: NSRange )
where Self: Sized + Message,

source

unsafe fn setVisibleFunctionTable_atBufferIndex( &self, function_table: Option<&ProtocolObject<dyn MTLVisibleFunctionTable>>, buffer_index: NSUInteger )
where Self: Sized + Message,

Available on crate feature MTLVisibleFunctionTable only.
source

unsafe fn setVisibleFunctionTables_withBufferRange( &self, function_tables: NonNull<*const ProtocolObject<dyn MTLVisibleFunctionTable>>, buffer_range: NSRange )
where Self: Sized + Message,

Available on crate feature MTLVisibleFunctionTable only.

Trait Implementations§

source§

impl ProtocolType for dyn MTLIntersectionFunctionTable

source§

const NAME: &'static str = "MTLIntersectionFunctionTable"

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 MTLIntersectionFunctionTable

Implementations on Foreign Types§

source§

impl<T> MTLIntersectionFunctionTable for ProtocolObject<T>

Implementors§