pub unsafe trait MTLIndirectComputeCommand: NSObjectProtocol {
// Provided methods
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 { ... }
fn concurrentDispatchThreadgroups_threadsPerThreadgroup(
&self,
threadgroups_per_grid: MTLSize,
threads_per_threadgroup: MTLSize,
)
where Self: Sized + Message { ... }
fn concurrentDispatchThreads_threadsPerThreadgroup(
&self,
threads_per_grid: MTLSize,
threads_per_threadgroup: MTLSize,
)
where Self: Sized + Message { ... }
fn setBarrier(&self)
where Self: Sized + Message { ... }
fn clearBarrier(&self)
where Self: Sized + Message { ... }
fn setImageblockWidth_height(&self, width: NSUInteger, height: NSUInteger)
where Self: Sized + Message { ... }
fn reset(&self)
where Self: Sized + Message { ... }
unsafe fn setThreadgroupMemoryLength_atIndex(
&self,
length: NSUInteger,
index: NSUInteger,
)
where Self: Sized + Message { ... }
fn setStageInRegion(&self, region: MTLRegion)
where Self: Sized + Message { ... }
}Available on crate feature
MTLIndirectCommandEncoder only.Expand description
Provided Methods§
fn setComputePipelineState( &self, pipeline_state: &ProtocolObject<dyn MTLComputePipelineState>, )
Available on crate features
MTLAllocation and MTLComputePipeline only.Sourceunsafe fn setKernelBuffer_offset_atIndex(
&self,
buffer: &ProtocolObject<dyn MTLBuffer>,
offset: NSUInteger,
index: NSUInteger,
)
Available on crate features MTLAllocation and MTLBuffer and MTLResource only.
unsafe fn setKernelBuffer_offset_atIndex( &self, buffer: &ProtocolObject<dyn MTLBuffer>, offset: NSUInteger, index: NSUInteger, )
MTLAllocation and MTLBuffer and MTLResource only.§Safety
buffermay need to be synchronized.buffermay be unretained, you must ensure it is kept alive while in use.buffercontents should be of the correct type.offsetmight not be bounds-checked.indexmight not be bounds-checked.
Sourceunsafe fn setKernelBuffer_offset_attributeStride_atIndex(
&self,
buffer: &ProtocolObject<dyn MTLBuffer>,
offset: NSUInteger,
stride: NSUInteger,
index: NSUInteger,
)
Available on crate features MTLAllocation and MTLBuffer and MTLResource only.
unsafe fn setKernelBuffer_offset_attributeStride_atIndex( &self, buffer: &ProtocolObject<dyn MTLBuffer>, offset: NSUInteger, stride: NSUInteger, index: NSUInteger, )
MTLAllocation and MTLBuffer and MTLResource only.sets kernel buffer at specified index with provided offset and stride.
only call this when the buffer-index is part of the stageInputDescriptor
and has set its stride to MTLBufferLayoutStrideDynamic
§Safety
buffermay need to be synchronized.buffermay be unretained, you must ensure it is kept alive while in use.buffercontents should be of the correct type.offsetmight not be bounds-checked.stridemight not be bounds-checked.indexmight not be bounds-checked.
fn concurrentDispatchThreadgroups_threadsPerThreadgroup( &self, threadgroups_per_grid: MTLSize, threads_per_threadgroup: MTLSize, )
Available on crate feature
MTLTypes only.fn concurrentDispatchThreads_threadsPerThreadgroup( &self, threads_per_grid: MTLSize, threads_per_threadgroup: MTLSize, )
Available on crate feature
MTLTypes only.fn setBarrier(&self)
fn clearBarrier(&self)
fn setImageblockWidth_height(&self, width: NSUInteger, height: NSUInteger)
fn reset(&self)
Sourceunsafe fn setThreadgroupMemoryLength_atIndex(
&self,
length: NSUInteger,
index: NSUInteger,
)
unsafe fn setThreadgroupMemoryLength_atIndex( &self, length: NSUInteger, index: NSUInteger, )
§Safety
index might not be bounds-checked.
fn setStageInRegion(&self, region: MTLRegion)
Available on crate feature
MTLTypes only.