pub struct IndirectComputeCommand(/* private fields */);Expand description
A compute command within an indirect command buffer.
C++ equivalent: MTL::IndirectComputeCommand
Indirect compute commands can encode dispatch calls and state changes that will be executed when the indirect command buffer is executed.
Implementations§
Source§impl IndirectComputeCommand
impl IndirectComputeCommand
Sourcepub fn set_barrier(&self)
pub fn set_barrier(&self)
Set a barrier for this command.
C++ equivalent: void setBarrier()
Sourcepub fn clear_barrier(&self)
pub fn clear_barrier(&self)
Clear a barrier for this command.
C++ equivalent: void clearBarrier()
Sourcepub fn set_compute_pipeline_state(&self, state: &ComputePipelineState)
pub fn set_compute_pipeline_state(&self, state: &ComputePipelineState)
Set the compute pipeline state.
C++ equivalent: void setComputePipelineState(const ComputePipelineState*)
Sourcepub fn set_kernel_buffer(
&self,
buffer: &Buffer,
offset: UInteger,
index: UInteger,
)
pub fn set_kernel_buffer( &self, buffer: &Buffer, offset: UInteger, index: UInteger, )
Set a kernel buffer.
C++ equivalent: void setKernelBuffer(const Buffer*, NS::UInteger offset, NS::UInteger index)
Sourcepub fn set_kernel_buffer_with_stride(
&self,
buffer: &Buffer,
offset: UInteger,
stride: UInteger,
index: UInteger,
)
pub fn set_kernel_buffer_with_stride( &self, buffer: &Buffer, offset: UInteger, stride: UInteger, index: UInteger, )
Set a kernel buffer with stride.
C++ equivalent: void setKernelBuffer(const Buffer*, NS::UInteger, NS::UInteger, NS::UInteger)
Sourcepub fn set_threadgroup_memory_length(&self, length: UInteger, index: UInteger)
pub fn set_threadgroup_memory_length(&self, length: UInteger, index: UInteger)
Set threadgroup memory length.
C++ equivalent: void setThreadgroupMemoryLength(NS::UInteger, NS::UInteger)
Sourcepub fn set_stage_in_region(&self, region: Region)
pub fn set_stage_in_region(&self, region: Region)
Set the stage-in region.
C++ equivalent: void setStageInRegion(Region)
Sourcepub fn set_imageblock_width(&self, width: UInteger, height: UInteger)
pub fn set_imageblock_width(&self, width: UInteger, height: UInteger)
Set the imageblock dimensions.
C++ equivalent: void setImageblockWidth(NS::UInteger, NS::UInteger)
Sourcepub fn concurrent_dispatch_threadgroups(
&self,
threadgroups_per_grid: Size,
threads_per_threadgroup: Size,
)
pub fn concurrent_dispatch_threadgroups( &self, threadgroups_per_grid: Size, threads_per_threadgroup: Size, )
Dispatch threadgroups concurrently.
C++ equivalent: void concurrentDispatchThreadgroups(...)
Sourcepub fn concurrent_dispatch_threads(
&self,
threads_per_grid: Size,
threads_per_threadgroup: Size,
)
pub fn concurrent_dispatch_threads( &self, threads_per_grid: Size, threads_per_threadgroup: Size, )
Dispatch threads concurrently.
C++ equivalent: void concurrentDispatchThreads(...)