Struct wgpu_hal::gles::CommandEncoder
source · pub struct CommandEncoder { /* private fields */ }
Available on crate feature
gles
only.Trait Implementations§
source§impl CommandEncoder<Api> for CommandEncoder
impl CommandEncoder<Api> for CommandEncoder
source§unsafe fn begin_encoding(&mut self, label: Label<'_>) -> Result<(), DeviceError>
unsafe fn begin_encoding(&mut self, label: Label<'_>) -> Result<(), DeviceError>
Begin encoding a new command buffer.
source§unsafe fn discard_encoding(&mut self)
unsafe fn discard_encoding(&mut self)
Discard currently recorded list, if any.
unsafe fn end_encoding(&mut self) -> Result<CommandBuffer, DeviceError>
source§unsafe fn reset_all<I>(&mut self, _command_buffers: I)
unsafe fn reset_all<I>(&mut self, _command_buffers: I)
Reclaims all resources that are allocated for this encoder.
Must get all of the produced command buffers back,
and they must not be used by GPU at this moment.
unsafe fn transition_buffers<'a, T>(&mut self, barriers: T)where T: Iterator<Item = BufferBarrier<'a, Api>>,
unsafe fn transition_textures<'a, T>(&mut self, barriers: T)where T: Iterator<Item = TextureBarrier<'a, Api>>,
unsafe fn clear_buffer(&mut self, buffer: &Buffer, range: MemoryRange)
unsafe fn copy_buffer_to_buffer<T>( &mut self, src: &Buffer, dst: &Buffer, regions: T )where T: Iterator<Item = BufferCopy>,
source§unsafe fn copy_texture_to_texture<T>(
&mut self,
src: &Texture,
_src_usage: TextureUses,
dst: &Texture,
regions: T
)where
T: Iterator<Item = TextureCopy>,
unsafe fn copy_texture_to_texture<T>( &mut self, src: &Texture, _src_usage: TextureUses, dst: &Texture, regions: T )where T: Iterator<Item = TextureCopy>,
Copy from one texture to another.
Works with a single array layer.
Note:
dst
current usage has to be TextureUses::COPY_DST
.
Note: the copy extent is in physical size (rounded to the block size)source§unsafe fn copy_buffer_to_texture<T>(
&mut self,
src: &Buffer,
dst: &Texture,
regions: T
)where
T: Iterator<Item = BufferTextureCopy>,
unsafe fn copy_buffer_to_texture<T>( &mut self, src: &Buffer, dst: &Texture, regions: T )where T: Iterator<Item = BufferTextureCopy>,
Copy from buffer to texture.
Works with a single array layer.
Note:
dst
current usage has to be TextureUses::COPY_DST
.
Note: the copy extent is in physical size (rounded to the block size)source§unsafe fn copy_texture_to_buffer<T>(
&mut self,
src: &Texture,
_src_usage: TextureUses,
dst: &Buffer,
regions: T
)where
T: Iterator<Item = BufferTextureCopy>,
unsafe fn copy_texture_to_buffer<T>( &mut self, src: &Texture, _src_usage: TextureUses, dst: &Buffer, regions: T )where T: Iterator<Item = BufferTextureCopy>,
Copy from texture to buffer.
Works with a single array layer.
Note: the copy extent is in physical size (rounded to the block size)
unsafe fn begin_query(&mut self, set: &QuerySet, index: u32)
unsafe fn end_query(&mut self, set: &QuerySet, _index: u32)
unsafe fn write_timestamp(&mut self, _set: &QuerySet, _index: u32)
unsafe fn reset_queries(&mut self, _set: &QuerySet, _range: Range<u32>)
unsafe fn copy_query_results( &mut self, set: &QuerySet, range: Range<u32>, buffer: &Buffer, offset: BufferAddress, _stride: BufferSize )
unsafe fn begin_render_pass(&mut self, desc: &RenderPassDescriptor<'_, Api>)
unsafe fn end_render_pass(&mut self)
source§unsafe fn set_bind_group(
&mut self,
layout: &PipelineLayout,
index: u32,
group: &BindGroup,
dynamic_offsets: &[DynamicOffset]
)
unsafe fn set_bind_group( &mut self, layout: &PipelineLayout, index: u32, group: &BindGroup, dynamic_offsets: &[DynamicOffset] )
Sets the bind group at
index
to group
, assuming the layout
of all the preceeding groups to be taken from layout
.