wgpu::backend::wgpu_core

Struct CoreRenderPass

source
pub struct CoreRenderPass {
    pub(crate) context: ContextWgpuCore,
    pass: RenderPass,
    error_sink: Arc<Mutex<ErrorSinkRaw>>,
    id: Identifier,
}
Available on wgpu_core only.

Fields§

§context: ContextWgpuCore§pass: RenderPass§error_sink: Arc<Mutex<ErrorSinkRaw>>§id: Identifier

Trait Implementations§

source§

impl Debug for CoreRenderPass

source§

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

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

impl Drop for CoreRenderPass

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl Hash for CoreRenderPass

source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for CoreRenderPass

source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for CoreRenderPass

source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for CoreRenderPass

source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl RenderPassInterface for CoreRenderPass

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: &DispatchBuffer, offset: BufferAddress, size: Option<BufferSize>, )

source§

fn set_push_constants(&mut self, stages: ShaderStages, 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_indirect( &mut self, indirect_buffer: &DispatchBuffer, indirect_offset: BufferAddress, )

source§

fn draw_indexed_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_indexed_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>, )

source§

fn end(&mut self)

source§

impl Eq for CoreRenderPass

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
§

impl<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
§

impl<T> Downcast<T> for T

§

fn downcast(&self) -> &T

§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
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> Upcast<T> for T

§

fn upcast(&self) -> Option<&T>

source§

impl<T> WasmNotSend for T
where T: Send,

source§

impl<T> WasmNotSendSync for T

source§

impl<T> WasmNotSync for T
where T: Sync,