pub struct IndirectRenderCommandRef(/* private fields */);Expand description
A borrowed reference to a IndirectRenderCommand.
Implementations§
Source§impl IndirectRenderCommandRef
impl IndirectRenderCommandRef
pub fn set_render_pipeline_state(&self, pipeline_state: &RenderPipelineStateRef)
pub fn set_vertex_buffer( &self, index: NSUInteger, buffer: Option<&BufferRef>, offset: NSUInteger, )
pub fn set_fragment_buffer( &self, index: NSUInteger, buffer: Option<&BufferRef>, offset: NSUInteger, )
pub fn draw_primitives( &self, primitive_type: MTLPrimitiveType, vertex_start: NSUInteger, vertex_count: NSUInteger, instance_count: NSUInteger, base_instance: NSUInteger, )
pub fn draw_indexed_primitives( &self, primitive_type: MTLPrimitiveType, index_count: NSUInteger, index_type: MTLIndexType, index_buffer: &BufferRef, index_buffer_offset: NSUInteger, instance_count: NSUInteger, base_vertex: NSUInteger, base_instance: NSUInteger, )
pub fn draw_patches( &self, number_of_patch_control_points: NSUInteger, patch_start: NSUInteger, patch_count: NSUInteger, patch_index_buffer: &BufferRef, patch_index_buffer_offset: NSUInteger, instance_count: NSUInteger, base_instance: NSUInteger, tesselation_factor_buffer: &BufferRef, tesselation_factor_buffer_offset: NSUInteger, tesselation_factor_buffer_instance_stride: NSUInteger, )
pub fn draw_indexed_patches( &self, number_of_patch_control_points: NSUInteger, patch_start: NSUInteger, patch_count: NSUInteger, patch_index_buffer: &BufferRef, patch_index_buffer_offset: NSUInteger, control_point_index_buffer: &BufferRef, control_point_index_buffer_offset: NSUInteger, instance_count: NSUInteger, base_instance: NSUInteger, tesselation_factor_buffer: &BufferRef, tesselation_factor_buffer_offset: NSUInteger, tesselation_factor_buffer_instance_stride: NSUInteger, )
pub fn reset(&self)
Trait Implementations§
Source§impl AsMut<IndirectRenderCommandRef> for IndirectRenderCommand
impl AsMut<IndirectRenderCommandRef> for IndirectRenderCommand
Source§fn as_mut(&mut self) -> &mut IndirectRenderCommandRef
fn as_mut(&mut self) -> &mut IndirectRenderCommandRef
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<IndirectRenderCommandRef> for IndirectRenderCommand
impl AsRef<IndirectRenderCommandRef> for IndirectRenderCommand
Source§fn as_ref(&self) -> &IndirectRenderCommandRef
fn as_ref(&self) -> &IndirectRenderCommandRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<IndirectRenderCommandRef> for IndirectRenderCommand
impl Borrow<IndirectRenderCommandRef> for IndirectRenderCommand
Source§fn borrow(&self) -> &IndirectRenderCommandRef
fn borrow(&self) -> &IndirectRenderCommandRef
Immutably borrows from an owned value. Read more
Source§impl BorrowMut<IndirectRenderCommandRef> for IndirectRenderCommand
impl BorrowMut<IndirectRenderCommandRef> for IndirectRenderCommand
Source§fn borrow_mut(&mut self) -> &mut IndirectRenderCommandRef
fn borrow_mut(&mut self) -> &mut IndirectRenderCommandRef
Mutably borrows from an owned value. Read more
Source§impl Debug for IndirectRenderCommandRef
impl Debug for IndirectRenderCommandRef
Source§impl ForeignTypeRef for IndirectRenderCommandRef
impl ForeignTypeRef for IndirectRenderCommandRef
Source§type CType = MTLIndirectRenderCommand
type CType = MTLIndirectRenderCommand
The raw C type.
Source§unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
Constructs a shared instance of this type from its raw type. Read more
Source§impl Message for IndirectRenderCommandRef
impl Message for IndirectRenderCommandRef
Source§unsafe fn send_message<A, R>(
&self,
sel: Sel,
args: A,
) -> Result<R, MessageError>
unsafe fn send_message<A, R>( &self, sel: Sel, args: A, ) -> Result<R, MessageError>
Sends a message to self with the given selector and arguments. Read more
Source§fn verify_message<A, R>(&self, sel: Sel) -> Result<(), MessageError>
fn verify_message<A, R>(&self, sel: Sel) -> Result<(), MessageError>
Verifies that the argument and return types match the encoding of the
method for the given selector. Read more
Source§impl ToOwned for IndirectRenderCommandRef
impl ToOwned for IndirectRenderCommandRef
Source§type Owned = IndirectRenderCommand
type Owned = IndirectRenderCommand
The resulting type after obtaining ownership.
Source§fn to_owned(&self) -> IndirectRenderCommand
fn to_owned(&self) -> IndirectRenderCommand
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0§fn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more