Skip to main content

DawnCommandEncoder

Struct DawnCommandEncoder 

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

Methods from Deref<Target = CommandEncoder>§

Source

pub fn finish( &self, descriptor: Option<&CommandBufferDescriptor>, ) -> CommandBuffer

Source

pub fn begin_compute_pass( &self, descriptor: Option<&ComputePassDescriptor>, ) -> ComputePassEncoder

Source

pub fn begin_render_pass( &self, descriptor: &RenderPassDescriptor, ) -> RenderPassEncoder

Source

pub fn copy_buffer_to_buffer( &self, source: Buffer, source_offset: u64, destination: Buffer, destination_offset: u64, size: u64, )

Source

pub fn copy_buffer_to_texture( &self, source: &TexelCopyBufferInfo, destination: &TexelCopyTextureInfo, copy_size: &Extent3D, )

Source

pub fn copy_texture_to_buffer( &self, source: &TexelCopyTextureInfo, destination: &TexelCopyBufferInfo, copy_size: &Extent3D, )

Source

pub fn copy_texture_to_texture( &self, source: &TexelCopyTextureInfo, destination: &TexelCopyTextureInfo, copy_size: &Extent3D, )

Source

pub fn clear_buffer(&self, buffer: Buffer, offset: u64, size: u64)

Source

pub fn inject_validation_error(&self, message: String)

Source

pub fn insert_debug_marker(&self, marker_label: String)

Source

pub fn pop_debug_group(&self)

Source

pub fn push_debug_group(&self, group_label: String)

Source

pub fn resolve_query_set( &self, query_set: QuerySet, first_query: u32, query_count: u32, destination: Buffer, destination_offset: u64, )

Source

pub fn write_buffer(&self, buffer: Buffer, buffer_offset: u64, data: &[u8])

Source

pub fn write_timestamp(&self, query_set: QuerySet, query_index: u32)

Source

pub fn set_label(&self, label: String)

Trait Implementations§

Source§

impl CommandEncoderInterface for DawnCommandEncoder

Source§

fn copy_buffer_to_buffer( &self, source: &DispatchBuffer, source_offset: BufferAddress, destination: &DispatchBuffer, destination_offset: BufferAddress, copy_size: Option<BufferAddress>, )

Source§

fn copy_buffer_to_texture( &self, source: TexelCopyBufferInfo<'_>, destination: TexelCopyTextureInfo<'_>, copy_size: Extent3d, )

Source§

fn copy_texture_to_buffer( &self, source: TexelCopyTextureInfo<'_>, destination: TexelCopyBufferInfo<'_>, copy_size: Extent3d, )

Source§

fn copy_texture_to_texture( &self, source: TexelCopyTextureInfo<'_>, destination: TexelCopyTextureInfo<'_>, copy_size: Extent3d, )

Source§

fn begin_compute_pass( &self, desc: &ComputePassDescriptor<'_>, ) -> DispatchComputePass

Source§

fn begin_render_pass( &self, desc: &RenderPassDescriptor<'_>, ) -> DispatchRenderPass

Source§

fn finish(&mut self) -> DispatchCommandBuffer

Source§

fn clear_texture( &self, texture: &DispatchTexture, subresource_range: &ImageSubresourceRange, )

Source§

fn clear_buffer( &self, buffer: &DispatchBuffer, offset: BufferAddress, size: Option<BufferAddress>, )

Source§

fn insert_debug_marker(&self, label: &str)

Source§

fn push_debug_group(&self, label: &str)

Source§

fn pop_debug_group(&self)

Source§

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

Source§

fn resolve_query_set( &self, query_set: &DispatchQuerySet, first_query: u32, query_count: u32, destination: &DispatchBuffer, destination_offset: BufferAddress, )

Source§

fn mark_acceleration_structures_built<'a>( &self, _blas: &mut dyn Iterator<Item = &'a Blas>, _tlas: &mut dyn Iterator<Item = &'a Tlas>, )

Source§

fn build_acceleration_structures<'a>( &self, _blas: &mut dyn Iterator<Item = &'a BlasBuildEntry<'a>>, _tlas: &mut dyn Iterator<Item = &'a Tlas>, )

Source§

fn transition_resources<'a>( &mut self, _buffer_transitions: &mut dyn Iterator<Item = BufferTransition<&'a DispatchBuffer>>, _texture_transitions: &mut dyn Iterator<Item = TextureTransition<&'a DispatchTexture>>, )

Source§

impl Debug for DawnCommandEncoder

Source§

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

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

impl Deref for DawnCommandEncoder

Source§

type Target = CommandEncoder

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.

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> AsAny for T
where T: 'static,

Source§

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> Downcast<T> for T

Source§

fn downcast(&self) -> &T

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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
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.
Source§

impl<T> Upcast<T> for T

Source§

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

Source§

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

Source§

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

Source§

impl<T> WasmNotSendSync for T

Source§

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