Trait objc2_metal::MTLArgumentEncoder
source · pub unsafe trait MTLArgumentEncoder: NSObjectProtocol + IsRetainable {
Show 26 methods
// Provided methods
unsafe fn device(&self) -> Retained<ProtocolObject<dyn MTLDevice>>
where Self: Sized + Message { ... }
unsafe fn label(&self) -> Option<Retained<NSString>>
where Self: Sized + Message { ... }
unsafe fn setLabel(&self, label: Option<&NSString>)
where Self: Sized + Message { ... }
fn encodedLength(&self) -> NSUInteger
where Self: Sized + Message { ... }
fn alignment(&self) -> NSUInteger
where Self: Sized + Message { ... }
unsafe fn setArgumentBuffer_offset(
&self,
argument_buffer: Option<&ProtocolObject<dyn MTLBuffer>>,
offset: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setArgumentBuffer_startOffset_arrayElement(
&self,
argument_buffer: Option<&ProtocolObject<dyn MTLBuffer>>,
start_offset: NSUInteger,
array_element: NSUInteger
)
where Self: Sized + Message { ... }
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 setTexture_atIndex(
&self,
texture: Option<&ProtocolObject<dyn MTLTexture>>,
index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setTextures_withRange(
&self,
textures: NonNull<*const ProtocolObject<dyn MTLTexture>>,
range: NSRange
)
where Self: Sized + Message { ... }
unsafe fn setSamplerState_atIndex(
&self,
sampler: Option<&ProtocolObject<dyn MTLSamplerState>>,
index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setSamplerStates_withRange(
&self,
samplers: NonNull<*const ProtocolObject<dyn MTLSamplerState>>,
range: NSRange
)
where Self: Sized + Message { ... }
unsafe fn constantDataAtIndex(&self, index: NSUInteger) -> NonNull<c_void>
where Self: Sized + Message { ... }
unsafe fn setRenderPipelineState_atIndex(
&self,
pipeline: Option<&ProtocolObject<dyn MTLRenderPipelineState>>,
index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setRenderPipelineStates_withRange(
&self,
pipelines: NonNull<*const ProtocolObject<dyn MTLRenderPipelineState>>,
range: NSRange
)
where Self: Sized + Message { ... }
unsafe fn setComputePipelineState_atIndex(
&self,
pipeline: Option<&ProtocolObject<dyn MTLComputePipelineState>>,
index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setComputePipelineStates_withRange(
&self,
pipelines: NonNull<*const ProtocolObject<dyn MTLComputePipelineState>>,
range: NSRange
)
where Self: Sized + Message { ... }
unsafe fn setIndirectCommandBuffer_atIndex(
&self,
indirect_command_buffer: Option<&ProtocolObject<dyn MTLIndirectCommandBuffer>>,
index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setIndirectCommandBuffers_withRange(
&self,
buffers: NonNull<*const ProtocolObject<dyn MTLIndirectCommandBuffer>>,
range: NSRange
)
where Self: Sized + Message { ... }
unsafe fn setAccelerationStructure_atIndex(
&self,
acceleration_structure: Option<&ProtocolObject<dyn MTLAccelerationStructure>>,
index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn newArgumentEncoderForBufferAtIndex(
&self,
index: NSUInteger
) -> Option<Retained<ProtocolObject<dyn MTLArgumentEncoder>>>
where Self: Sized + Message { ... }
unsafe fn setVisibleFunctionTable_atIndex(
&self,
visible_function_table: Option<&ProtocolObject<dyn MTLVisibleFunctionTable>>,
index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setVisibleFunctionTables_withRange(
&self,
visible_function_tables: NonNull<*const ProtocolObject<dyn MTLVisibleFunctionTable>>,
range: NSRange
)
where Self: Sized + Message { ... }
unsafe fn setIntersectionFunctionTable_atIndex(
&self,
intersection_function_table: Option<&ProtocolObject<dyn MTLIntersectionFunctionTable>>,
index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setIntersectionFunctionTables_withRange(
&self,
intersection_function_tables: NonNull<*const ProtocolObject<dyn MTLIntersectionFunctionTable>>,
range: NSRange
)
where Self: Sized + Message { ... }
}Available on crate feature
MTLArgumentEncoder only.Provided Methods§
unsafe fn device(&self) -> Retained<ProtocolObject<dyn MTLDevice>>
Available on crate feature
MTLDevice only.unsafe fn label(&self) -> Option<Retained<NSString>>
unsafe fn setLabel(&self, label: Option<&NSString>)
fn encodedLength(&self) -> NSUInteger
fn alignment(&self) -> NSUInteger
unsafe fn setArgumentBuffer_offset( &self, argument_buffer: Option<&ProtocolObject<dyn MTLBuffer>>, offset: NSUInteger )
Available on crate features
MTLBuffer and MTLResource only.unsafe fn setArgumentBuffer_startOffset_arrayElement( &self, argument_buffer: Option<&ProtocolObject<dyn MTLBuffer>>, start_offset: NSUInteger, array_element: NSUInteger )
Available on crate features
MTLBuffer and MTLResource only.unsafe fn setBuffer_offset_atIndex( &self, buffer: Option<&ProtocolObject<dyn MTLBuffer>>, offset: NSUInteger, index: NSUInteger )
Available on crate features
MTLBuffer and MTLResource only.unsafe fn setBuffers_offsets_withRange( &self, buffers: NonNull<*const ProtocolObject<dyn MTLBuffer>>, offsets: NonNull<NSUInteger>, range: NSRange )
Available on crate features
MTLBuffer and MTLResource only.unsafe fn setTexture_atIndex( &self, texture: Option<&ProtocolObject<dyn MTLTexture>>, index: NSUInteger )
Available on crate features
MTLResource and MTLTexture only.unsafe fn setTextures_withRange( &self, textures: NonNull<*const ProtocolObject<dyn MTLTexture>>, range: NSRange )
Available on crate features
MTLResource and MTLTexture only.unsafe fn setSamplerState_atIndex( &self, sampler: Option<&ProtocolObject<dyn MTLSamplerState>>, index: NSUInteger )
Available on crate feature
MTLSampler only.unsafe fn setSamplerStates_withRange( &self, samplers: NonNull<*const ProtocolObject<dyn MTLSamplerState>>, range: NSRange )
Available on crate feature
MTLSampler only.unsafe fn constantDataAtIndex(&self, index: NSUInteger) -> NonNull<c_void>
unsafe fn setRenderPipelineState_atIndex( &self, pipeline: Option<&ProtocolObject<dyn MTLRenderPipelineState>>, index: NSUInteger )
Available on crate feature
MTLRenderPipeline only.unsafe fn setRenderPipelineStates_withRange( &self, pipelines: NonNull<*const ProtocolObject<dyn MTLRenderPipelineState>>, range: NSRange )
Available on crate feature
MTLRenderPipeline only.unsafe fn setComputePipelineState_atIndex( &self, pipeline: Option<&ProtocolObject<dyn MTLComputePipelineState>>, index: NSUInteger )
Available on crate feature
MTLComputePipeline only.unsafe fn setComputePipelineStates_withRange( &self, pipelines: NonNull<*const ProtocolObject<dyn MTLComputePipelineState>>, range: NSRange )
Available on crate feature
MTLComputePipeline only.unsafe fn setIndirectCommandBuffer_atIndex( &self, indirect_command_buffer: Option<&ProtocolObject<dyn MTLIndirectCommandBuffer>>, index: NSUInteger )
Available on crate features
MTLIndirectCommandBuffer and MTLResource only.unsafe fn setIndirectCommandBuffers_withRange( &self, buffers: NonNull<*const ProtocolObject<dyn MTLIndirectCommandBuffer>>, range: NSRange )
Available on crate features
MTLIndirectCommandBuffer and MTLResource only.unsafe fn setAccelerationStructure_atIndex( &self, acceleration_structure: Option<&ProtocolObject<dyn MTLAccelerationStructure>>, index: NSUInteger )
Available on crate features
MTLAccelerationStructure and MTLResource only.unsafe fn newArgumentEncoderForBufferAtIndex( &self, index: NSUInteger ) -> Option<Retained<ProtocolObject<dyn MTLArgumentEncoder>>>
unsafe fn setVisibleFunctionTable_atIndex( &self, visible_function_table: Option<&ProtocolObject<dyn MTLVisibleFunctionTable>>, index: NSUInteger )
Available on crate features
MTLResource and MTLVisibleFunctionTable only.unsafe fn setVisibleFunctionTables_withRange( &self, visible_function_tables: NonNull<*const ProtocolObject<dyn MTLVisibleFunctionTable>>, range: NSRange )
Available on crate features
MTLResource and MTLVisibleFunctionTable only.unsafe fn setIntersectionFunctionTable_atIndex( &self, intersection_function_table: Option<&ProtocolObject<dyn MTLIntersectionFunctionTable>>, index: NSUInteger )
Available on crate features
MTLIntersectionFunctionTable and MTLResource only.unsafe fn setIntersectionFunctionTables_withRange( &self, intersection_function_tables: NonNull<*const ProtocolObject<dyn MTLIntersectionFunctionTable>>, range: NSRange )
Available on crate features
MTLIntersectionFunctionTable and MTLResource only.