Skip to main content

SgRenderPass

Struct SgRenderPass 

Source
pub struct SgRenderPass { /* private fields */ }

Trait Implementations§

Source§

impl Debug for SgRenderPass

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Drop for SgRenderPass

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl RenderPassInterface for SgRenderPass

Source§

fn set_pipeline(&mut self, pipeline: &DispatchRenderPipeline)

Source§

fn set_bind_group( &mut self, index: u32, bind_group: Option<&DispatchBindGroup>, offsets: &[DynamicOffset], )

Source§

fn set_index_buffer( &mut self, buffer: &DispatchBuffer, index_format: IndexFormat, offset: BufferAddress, size: Option<BufferSize>, )

Source§

fn set_vertex_buffer( &mut self, slot: u32, buffer: Option<&DispatchBuffer>, offset: BufferAddress, size: Option<BufferSize>, )

Source§

fn set_immediates(&mut self, offset: u32, data: &[u8])

Source§

fn set_blend_constant(&mut self, color: Color)

Source§

fn set_scissor_rect(&mut self, x: u32, y: u32, width: u32, height: u32)

Source§

fn set_viewport( &mut self, x: f32, y: f32, width: f32, height: f32, min_depth: f32, max_depth: f32, )

Source§

fn set_stencil_reference(&mut self, reference: u32)

Source§

fn draw(&mut self, vertices: Range<u32>, instances: Range<u32>)

Source§

fn draw_indexed( &mut self, indices: Range<u32>, base_vertex: i32, instances: Range<u32>, )

Source§

fn draw_mesh_tasks(&mut self, x: u32, y: u32, z: u32)

Source§

fn draw_indirect( &mut self, indirect_buffer: &DispatchBuffer, indirect_offset: BufferAddress, )

Source§

fn draw_indexed_indirect( &mut self, indirect_buffer: &DispatchBuffer, indirect_offset: BufferAddress, )

Source§

fn draw_mesh_tasks_indirect( &mut self, indirect_buffer: &DispatchBuffer, indirect_offset: BufferAddress, )

Source§

fn multi_draw_indirect( &mut self, indirect_buffer: &DispatchBuffer, indirect_offset: BufferAddress, count: u32, )

Source§

fn multi_draw_indexed_indirect( &mut self, indirect_buffer: &DispatchBuffer, indirect_offset: BufferAddress, count: u32, )

Source§

fn multi_draw_indirect_count( &mut self, indirect_buffer: &DispatchBuffer, indirect_offset: BufferAddress, count_buffer: &DispatchBuffer, count_buffer_offset: BufferAddress, max_count: u32, )

Source§

fn multi_draw_mesh_tasks_indirect( &mut self, indirect_buffer: &DispatchBuffer, indirect_offset: BufferAddress, count: u32, )

Source§

fn multi_draw_indexed_indirect_count( &mut self, indirect_buffer: &DispatchBuffer, indirect_offset: BufferAddress, count_buffer: &DispatchBuffer, count_buffer_offset: BufferAddress, max_count: u32, )

Source§

fn multi_draw_mesh_tasks_indirect_count( &mut self, indirect_buffer: &DispatchBuffer, indirect_offset: BufferAddress, count_buffer: &DispatchBuffer, count_buffer_offset: BufferAddress, max_count: u32, )

Source§

fn insert_debug_marker(&mut self, label: &str)

Source§

fn push_debug_group(&mut self, group_label: &str)

Source§

fn pop_debug_group(&mut self)

Source§

fn write_timestamp(&mut self, query_set: &DispatchQuerySet, query_index: u32)

Source§

fn begin_occlusion_query(&mut self, query_index: u32)

Source§

fn end_occlusion_query(&mut self)

Source§

fn begin_pipeline_statistics_query( &mut self, query_set: &DispatchQuerySet, query_index: u32, )

Source§

fn end_pipeline_statistics_query(&mut self)

Source§

fn execute_bundles( &mut self, render_bundles: &mut dyn Iterator<Item = &DispatchRenderBundle>, )

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
§

impl<T> AsAny for T
where T: 'static,

§

fn as_any(&self) -> &(dyn Any + 'static)

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.
§

impl<T> CommonTraits for T
where T: AsAny + Any + Debug + WasmNotSendSync,

§

impl<T> WasmNotSend for T

§

impl<T> WasmNotSendSync for T
where T: WasmNotSend + WasmNotSync,

§

impl<T> WasmNotSync for T