Struct MTLRenderCommandEncoder

Source
pub struct MTLRenderCommandEncoder(/* private fields */);

Implementations§

Source§

impl MTLRenderCommandEncoder

Source

pub unsafe fn set_render_pipeline_state(&self, state: &MTLRenderPipelineState)

Source

pub unsafe fn set_triangle_fill_mode(&self, mode: MTLTriangleFillMode)

Source

pub unsafe fn set_front_face_winding(&self, winding: MTLWinding)

Source

pub unsafe fn set_cull_mode(&self, mode: MTLCullMode)

Source

pub unsafe fn set_depth_stencil_state(&self, state: &MTLDepthStencilState)

Source

pub unsafe fn set_depth_clip_mode(&self, mode: MTLDepthClipMode)

Source

pub unsafe fn set_stencil_reference_values(&self, front: u32, back: u32)

Source

pub unsafe fn set_viewport(&self, viewport: MTLViewport)

Source

pub unsafe fn set_viewports(&self, viewports: &[MTLViewport])

Source

pub unsafe fn set_scissor_rect(&self, rect: MTLScissorRect)

Source

pub unsafe fn set_scissor_rects(&self, rects: &[MTLScissorRect])

Source

pub unsafe fn set_blend_color( &self, red: f32, green: f32, blue: f32, alpha: f32, )

Source

pub unsafe fn set_vertex_buffer( &self, buffer: &MTLBuffer, offset: NSUInteger, index: NSUInteger, )

Source

pub unsafe fn set_vertex_buffers( &self, buffers: &[MTLBuffer], offsets: &[NSUInteger], range: NSUIntegerRange, )

Source

pub unsafe fn set_vertex_buffer_offset( &self, offset: NSUInteger, index: NSUInteger, )

Source

pub unsafe fn set_vertex_bytes( &self, bytes: *const c_void, length: NSUInteger, index: NSUInteger, )

Source

pub unsafe fn set_vertex_sampler_state( &self, sampler: &MTLSamplerState, index: NSUInteger, )

Source

pub unsafe fn set_vertex_sampler_state_clamp( &self, sampler: &MTLSamplerState, lod_min_clamp: f32, lod_max_clamp: f32, index: NSUInteger, )

Source

pub unsafe fn set_vertex_sampler_states( &self, samplers: &[MTLSamplerState], range: NSUIntegerRange, )

Source

pub unsafe fn set_vertex_texture(&self, texture: &MTLTexture, index: NSUInteger)

Source

pub unsafe fn set_vertex_textures( &self, textures: &[MTLTexture], range: NSUIntegerRange, )

Source

pub unsafe fn set_fragment_buffer( &self, buffer: &MTLBuffer, offset: NSUInteger, index: NSUInteger, )

Source

pub unsafe fn set_fragment_buffers( &self, buffers: &[MTLBuffer], offsets: &[NSUInteger], range: NSUIntegerRange, )

Source

pub unsafe fn set_fragment_buffer_offset( &self, offset: NSUInteger, index: NSUInteger, )

Source

pub unsafe fn set_fragment_bytes( &self, bytes: *const c_void, length: NSUInteger, index: NSUInteger, )

Source

pub unsafe fn set_fragment_sampler_state( &self, sampler: &MTLSamplerState, index: NSUInteger, )

Source

pub unsafe fn set_fragment_sampler_state_clamp( &self, sampler: &MTLSamplerState, lod_min_clamp: f32, lod_max_clamp: f32, index: NSUInteger, )

Source

pub unsafe fn set_fragment_sampler_states( &self, samplers: &[MTLSamplerState], range: NSUIntegerRange, )

Source

pub unsafe fn set_fragment_texture( &self, texture: &MTLTexture, index: NSUInteger, )

Source

pub unsafe fn set_fragment_textures( &self, textures: &[MTLTexture], range: NSUIntegerRange, )

Source

pub unsafe fn draw_primitives( &self, primitive: MTLPrimitiveType, start: NSUInteger, vertices: NSUInteger, instances: NSUInteger, base_instance: NSUInteger, )

Source

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

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl MTLCommandEncoder for MTLRenderCommandEncoder

Source§

unsafe fn end_encoding(&self)

Source§

impl Object for MTLRenderCommandEncoder

Source§

unsafe fn from_ptr(ptr: ObjectPointer) -> Self
where Self: Sized,

Constructs an object from the provided pointer. Read more
Source§

fn get_ptr(&self) -> ObjectPointer

Returns the underlying pointer of the object. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.