pub struct MTLRenderCommandEncoder(/* private fields */);Implementations§
Source§impl MTLRenderCommandEncoder
impl MTLRenderCommandEncoder
pub unsafe fn set_render_pipeline_state(&self, state: &MTLRenderPipelineState)
pub unsafe fn set_triangle_fill_mode(&self, mode: MTLTriangleFillMode)
pub unsafe fn set_front_face_winding(&self, winding: MTLWinding)
pub unsafe fn set_cull_mode(&self, mode: MTLCullMode)
pub unsafe fn set_depth_stencil_state(&self, state: &MTLDepthStencilState)
pub unsafe fn set_depth_clip_mode(&self, mode: MTLDepthClipMode)
pub unsafe fn set_stencil_reference_values(&self, front: u32, back: u32)
pub unsafe fn set_viewport(&self, viewport: MTLViewport)
pub unsafe fn set_viewports(&self, viewports: &[MTLViewport])
pub unsafe fn set_scissor_rect(&self, rect: MTLScissorRect)
pub unsafe fn set_scissor_rects(&self, rects: &[MTLScissorRect])
pub unsafe fn set_blend_color( &self, red: f32, green: f32, blue: f32, alpha: f32, )
pub unsafe fn set_vertex_buffer( &self, buffer: &MTLBuffer, offset: NSUInteger, index: NSUInteger, )
pub unsafe fn set_vertex_buffers( &self, buffers: &[MTLBuffer], offsets: &[NSUInteger], range: NSUIntegerRange, )
pub unsafe fn set_vertex_buffer_offset( &self, offset: NSUInteger, index: NSUInteger, )
pub unsafe fn set_vertex_bytes( &self, bytes: *const c_void, length: NSUInteger, index: NSUInteger, )
pub unsafe fn set_vertex_sampler_state( &self, sampler: &MTLSamplerState, index: NSUInteger, )
pub unsafe fn set_vertex_sampler_state_clamp( &self, sampler: &MTLSamplerState, lod_min_clamp: f32, lod_max_clamp: f32, index: NSUInteger, )
pub unsafe fn set_vertex_sampler_states( &self, samplers: &[MTLSamplerState], range: NSUIntegerRange, )
pub unsafe fn set_vertex_texture(&self, texture: &MTLTexture, index: NSUInteger)
pub unsafe fn set_vertex_textures( &self, textures: &[MTLTexture], range: NSUIntegerRange, )
pub unsafe fn set_fragment_buffer( &self, buffer: &MTLBuffer, offset: NSUInteger, index: NSUInteger, )
pub unsafe fn set_fragment_buffers( &self, buffers: &[MTLBuffer], offsets: &[NSUInteger], range: NSUIntegerRange, )
pub unsafe fn set_fragment_buffer_offset( &self, offset: NSUInteger, index: NSUInteger, )
pub unsafe fn set_fragment_bytes( &self, bytes: *const c_void, length: NSUInteger, index: NSUInteger, )
pub unsafe fn set_fragment_sampler_state( &self, sampler: &MTLSamplerState, index: NSUInteger, )
pub unsafe fn set_fragment_sampler_state_clamp( &self, sampler: &MTLSamplerState, lod_min_clamp: f32, lod_max_clamp: f32, index: NSUInteger, )
pub unsafe fn set_fragment_sampler_states( &self, samplers: &[MTLSamplerState], range: NSUIntegerRange, )
pub unsafe fn set_fragment_texture( &self, texture: &MTLTexture, index: NSUInteger, )
pub unsafe fn set_fragment_textures( &self, textures: &[MTLTexture], range: NSUIntegerRange, )
pub unsafe fn draw_primitives( &self, primitive: MTLPrimitiveType, start: NSUInteger, vertices: NSUInteger, instances: NSUInteger, base_instance: NSUInteger, )
pub unsafe fn draw_indexed_primitives( &self, primitive: MTLPrimitiveType, indices: NSUInteger, index_type: MTLIndexType, index_buffer: &MTLBuffer, index_buffer_offset: NSUInteger, instance_count: NSUInteger, base_vertex: NSInteger, base_instance: NSUInteger, )
Trait Implementations§
Source§impl Drop for MTLRenderCommandEncoder
impl Drop for MTLRenderCommandEncoder
Source§impl MTLCommandEncoder for MTLRenderCommandEncoder
impl MTLCommandEncoder for MTLRenderCommandEncoder
unsafe fn end_encoding(&self)
Source§impl Object for MTLRenderCommandEncoder
impl Object for MTLRenderCommandEncoder
Auto Trait Implementations§
impl Freeze for MTLRenderCommandEncoder
impl RefUnwindSafe for MTLRenderCommandEncoder
impl !Send for MTLRenderCommandEncoder
impl !Sync for MTLRenderCommandEncoder
impl Unpin for MTLRenderCommandEncoder
impl UnwindSafe for MTLRenderCommandEncoder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more