Skip to main content

SgCommandEncoder

Struct SgCommandEncoder 

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

Trait Implementations§

Source§

impl CommandEncoderInterface for SgCommandEncoder

Source§

fn copy_buffer_to_buffer( &self, src: &DispatchBuffer, src_offset: BufferAddress, dst: &DispatchBuffer, dst_offset: BufferAddress, 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, 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, _b: &mut dyn Iterator<Item = BufferTransition<&'a DispatchBuffer>>, _t: &mut dyn Iterator<Item = TextureTransition<&'a DispatchTexture>>, )

Source§

impl Debug for SgCommandEncoder

Source§

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

Formats the value using the given formatter. 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
§

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