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§

source

unsafe fn device(&self) -> Retained<ProtocolObject<dyn MTLDevice>>
where Self: Sized + Message,

Available on crate feature MTLDevice only.
source

unsafe fn label(&self) -> Option<Retained<NSString>>
where Self: Sized + Message,

source

unsafe fn setLabel(&self, label: Option<&NSString>)
where Self: Sized + Message,

source

fn encodedLength(&self) -> NSUInteger
where Self: Sized + Message,

source

fn alignment(&self) -> NSUInteger
where Self: Sized + Message,

source

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

Available on crate features MTLBuffer and MTLResource only.
source

unsafe fn setArgumentBuffer_startOffset_arrayElement( &self, argument_buffer: Option<&ProtocolObject<dyn MTLBuffer>>, start_offset: NSUInteger, array_element: NSUInteger )
where Self: Sized + Message,

Available on crate features MTLBuffer and MTLResource only.
source

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

Available on crate features MTLBuffer and MTLResource 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 features MTLBuffer and MTLResource only.
source

unsafe fn setTexture_atIndex( &self, texture: Option<&ProtocolObject<dyn MTLTexture>>, index: NSUInteger )
where Self: Sized + Message,

Available on crate features MTLResource and MTLTexture only.
source

unsafe fn setTextures_withRange( &self, textures: NonNull<*const ProtocolObject<dyn MTLTexture>>, range: NSRange )
where Self: Sized + Message,

Available on crate features MTLResource and MTLTexture only.
source

unsafe fn setSamplerState_atIndex( &self, sampler: Option<&ProtocolObject<dyn MTLSamplerState>>, index: NSUInteger )
where Self: Sized + Message,

Available on crate feature MTLSampler only.
source

unsafe fn setSamplerStates_withRange( &self, samplers: NonNull<*const ProtocolObject<dyn MTLSamplerState>>, range: NSRange )
where Self: Sized + Message,

Available on crate feature MTLSampler only.
source

unsafe fn constantDataAtIndex(&self, index: NSUInteger) -> NonNull<c_void>
where Self: Sized + Message,

source

unsafe fn setRenderPipelineState_atIndex( &self, pipeline: Option<&ProtocolObject<dyn MTLRenderPipelineState>>, index: NSUInteger )
where Self: Sized + Message,

Available on crate feature MTLRenderPipeline only.
source

unsafe fn setRenderPipelineStates_withRange( &self, pipelines: NonNull<*const ProtocolObject<dyn MTLRenderPipelineState>>, range: NSRange )
where Self: Sized + Message,

Available on crate feature MTLRenderPipeline only.
source

unsafe fn setComputePipelineState_atIndex( &self, pipeline: Option<&ProtocolObject<dyn MTLComputePipelineState>>, index: NSUInteger )
where Self: Sized + Message,

Available on crate feature MTLComputePipeline only.
source

unsafe fn setComputePipelineStates_withRange( &self, pipelines: NonNull<*const ProtocolObject<dyn MTLComputePipelineState>>, range: NSRange )
where Self: Sized + Message,

Available on crate feature MTLComputePipeline only.
source

unsafe fn setIndirectCommandBuffer_atIndex( &self, indirect_command_buffer: Option<&ProtocolObject<dyn MTLIndirectCommandBuffer>>, index: NSUInteger )
where Self: Sized + Message,

Available on crate features MTLIndirectCommandBuffer and MTLResource only.
source

unsafe fn setIndirectCommandBuffers_withRange( &self, buffers: NonNull<*const ProtocolObject<dyn MTLIndirectCommandBuffer>>, range: NSRange )
where Self: Sized + Message,

Available on crate features MTLIndirectCommandBuffer and MTLResource only.
source

unsafe fn setAccelerationStructure_atIndex( &self, acceleration_structure: Option<&ProtocolObject<dyn MTLAccelerationStructure>>, index: NSUInteger )
where Self: Sized + Message,

Available on crate features MTLAccelerationStructure and MTLResource only.
source

unsafe fn newArgumentEncoderForBufferAtIndex( &self, index: NSUInteger ) -> Option<Retained<ProtocolObject<dyn MTLArgumentEncoder>>>
where Self: Sized + Message,

source

unsafe fn setVisibleFunctionTable_atIndex( &self, visible_function_table: Option<&ProtocolObject<dyn MTLVisibleFunctionTable>>, index: NSUInteger )
where Self: Sized + Message,

Available on crate features MTLResource and MTLVisibleFunctionTable only.
source

unsafe fn setVisibleFunctionTables_withRange( &self, visible_function_tables: NonNull<*const ProtocolObject<dyn MTLVisibleFunctionTable>>, range: NSRange )
where Self: Sized + Message,

Available on crate features MTLResource and MTLVisibleFunctionTable only.
source

unsafe fn setIntersectionFunctionTable_atIndex( &self, intersection_function_table: Option<&ProtocolObject<dyn MTLIntersectionFunctionTable>>, index: NSUInteger )
where Self: Sized + Message,

Available on crate features MTLIntersectionFunctionTable and MTLResource only.
source

unsafe fn setIntersectionFunctionTables_withRange( &self, intersection_function_tables: NonNull<*const ProtocolObject<dyn MTLIntersectionFunctionTable>>, range: NSRange )
where Self: Sized + Message,

Available on crate features MTLIntersectionFunctionTable and MTLResource only.

Trait Implementations§

source§

impl ProtocolType for dyn MTLArgumentEncoder

source§

const NAME: &'static str = "MTLArgumentEncoder"

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 MTLArgumentEncoder

Implementations on Foreign Types§

source§

impl<T> MTLArgumentEncoder for ProtocolObject<T>

Implementors§