Trait objc2_metal::MTLIndirectComputeCommand

source ·
pub unsafe trait MTLIndirectComputeCommand: NSObjectProtocol + IsRetainable {
    // Provided methods
    unsafe fn setComputePipelineState(
        &self,
        pipeline_state: &ProtocolObject<dyn MTLComputePipelineState>
    )
       where Self: Sized + Message { ... }
    unsafe fn setKernelBuffer_offset_atIndex(
        &self,
        buffer: &ProtocolObject<dyn MTLBuffer>,
        offset: NSUInteger,
        index: NSUInteger
    )
       where Self: Sized + Message { ... }
    unsafe fn setKernelBuffer_offset_attributeStride_atIndex(
        &self,
        buffer: &ProtocolObject<dyn MTLBuffer>,
        offset: NSUInteger,
        stride: NSUInteger,
        index: NSUInteger
    )
       where Self: Sized + Message { ... }
    unsafe fn concurrentDispatchThreadgroups_threadsPerThreadgroup(
        &self,
        threadgroups_per_grid: MTLSize,
        threads_per_threadgroup: MTLSize
    )
       where Self: Sized + Message { ... }
    unsafe fn concurrentDispatchThreads_threadsPerThreadgroup(
        &self,
        threads_per_grid: MTLSize,
        threads_per_threadgroup: MTLSize
    )
       where Self: Sized + Message { ... }
    unsafe fn setBarrier(&self)
       where Self: Sized + Message { ... }
    unsafe fn clearBarrier(&self)
       where Self: Sized + Message { ... }
    unsafe fn setImageblockWidth_height(
        &self,
        width: NSUInteger,
        height: NSUInteger
    )
       where Self: Sized + Message { ... }
    unsafe fn reset(&self)
       where Self: Sized + Message { ... }
    unsafe fn setThreadgroupMemoryLength_atIndex(
        &self,
        length: NSUInteger,
        index: NSUInteger
    )
       where Self: Sized + Message { ... }
    unsafe fn setStageInRegion(&self, region: MTLRegion)
       where Self: Sized + Message { ... }
}
Available on crate feature MTLIndirectCommandEncoder only.

Provided Methods§

source

unsafe fn setComputePipelineState( &self, pipeline_state: &ProtocolObject<dyn MTLComputePipelineState> )
where Self: Sized + Message,

Available on crate feature MTLComputePipeline only.
source

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

Available on crate features MTLBuffer and MTLResource only.
source

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

Available on crate features MTLBuffer and MTLResource only.
source

unsafe fn concurrentDispatchThreadgroups_threadsPerThreadgroup( &self, threadgroups_per_grid: MTLSize, threads_per_threadgroup: MTLSize )
where Self: Sized + Message,

Available on crate feature MTLTypes only.
source

unsafe fn concurrentDispatchThreads_threadsPerThreadgroup( &self, threads_per_grid: MTLSize, threads_per_threadgroup: MTLSize )
where Self: Sized + Message,

Available on crate feature MTLTypes only.
source

unsafe fn setBarrier(&self)
where Self: Sized + Message,

source

unsafe fn clearBarrier(&self)
where Self: Sized + Message,

source

unsafe fn setImageblockWidth_height( &self, width: NSUInteger, height: NSUInteger )
where Self: Sized + Message,

source

unsafe fn reset(&self)
where Self: Sized + Message,

source

unsafe fn setThreadgroupMemoryLength_atIndex( &self, length: NSUInteger, index: NSUInteger )
where Self: Sized + Message,

source

unsafe fn setStageInRegion(&self, region: MTLRegion)
where Self: Sized + Message,

Available on crate feature MTLTypes only.

Trait Implementations§

source§

impl ProtocolType for dyn MTLIndirectComputeCommand

source§

const NAME: &'static str = "MTLIndirectComputeCommand"

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 MTLIndirectComputeCommand

Implementations on Foreign Types§

source§

impl<T> MTLIndirectComputeCommand for ProtocolObject<T>

Implementors§