Enum wgpu_hal::gles::Command

source ·
enum Command {
Show 52 variants Draw { topology: u32, first_vertex: u32, vertex_count: u32, first_instance: u32, instance_count: u32, first_instance_location: Option<UniformLocation>, }, DrawIndexed { topology: u32, index_type: u32, index_count: u32, index_offset: BufferAddress, base_vertex: i32, first_instance: u32, instance_count: u32, first_instance_location: Option<UniformLocation>, }, DrawIndirect { topology: u32, indirect_buf: Buffer, indirect_offset: BufferAddress, first_instance_location: Option<UniformLocation>, }, DrawIndexedIndirect { topology: u32, index_type: u32, indirect_buf: Buffer, indirect_offset: BufferAddress, first_instance_location: Option<UniformLocation>, }, Dispatch([u32; 3]), DispatchIndirect { indirect_buf: Buffer, indirect_offset: BufferAddress, }, ClearBuffer { dst: Buffer, dst_target: u32, range: MemoryRange, }, CopyBufferToBuffer { src: Buffer, src_target: u32, dst: Buffer, dst_target: u32, copy: BufferCopy, }, CopyTextureToTexture { src: Texture, src_target: u32, dst: Texture, dst_target: u32, copy: TextureCopy, }, CopyBufferToTexture { src: Buffer, src_target: u32, dst: Texture, dst_target: u32, dst_format: TextureFormat, copy: BufferTextureCopy, }, CopyTextureToBuffer { src: Texture, src_target: u32, src_format: TextureFormat, dst: Buffer, dst_target: u32, copy: BufferTextureCopy, }, SetIndexBuffer(Buffer), BeginQuery(Query, u32), EndQuery(u32), TimestampQuery(Query), CopyQueryResults { query_range: Range<u32>, dst: Buffer, dst_target: u32, dst_offset: BufferAddress, }, ResetFramebuffer { is_default: bool, }, BindAttachment { attachment: u32, view: TextureView, }, ResolveAttachment { attachment: u32, dst: TextureView, size: Extent3d, }, InvalidateAttachments(ArrayVec<u32, { _ }>), SetDrawColorBuffers(u8), ClearColorF { draw_buffer: u32, color: [f32; 4], is_srgb: bool, }, ClearColorU(u32, [u32; 4]), ClearColorI(u32, [i32; 4]), ClearDepth(f32), ClearStencil(u32), ClearDepthAndStencil(f32, u32), BufferBarrier(Buffer, BufferUses), TextureBarrier(TextureUses), SetViewport { rect: Rect<i32>, depth: Range<f32>, }, SetScissor(Rect<i32>), SetStencilFunc { face: u32, function: u32, reference: u32, read_mask: u32, }, SetStencilOps { face: u32, write_mask: u32, ops: StencilOps, }, SetDepth(DepthState), SetDepthBias(DepthBiasState), ConfigureDepthStencil(FormatAspects), SetAlphaToCoverage(bool), SetVertexAttribute { buffer: Option<Buffer>, buffer_desc: VertexBufferDesc, attribute_desc: AttributeDesc, }, UnsetVertexAttribute(u32), SetVertexBuffer { index: u32, buffer: BufferBinding, buffer_desc: VertexBufferDesc, }, SetProgram(Program), SetPrimitive(PrimitiveState), SetBlendConstant([f32; 4]), SetColorTarget { draw_buffer_index: Option<u32>, desc: ColorTargetDesc, }, BindBuffer { target: u32, slot: u32, buffer: Buffer, offset: i32, size: i32, }, BindSampler(u32, Option<Sampler>), BindTexture { slot: u32, texture: Texture, target: u32, aspects: FormatAspects, mip_levels: Range<u32>, }, BindImage { slot: u32, binding: ImageBinding, }, InsertDebugMarker(Range<u32>), PushDebugGroup(Range<u32>), PopDebugGroup, SetPushConstants { uniform: PushConstantDesc, offset: u32, },
}

Variants§

§

Draw

Fields

§topology: u32
§first_vertex: u32
§vertex_count: u32
§first_instance: u32
§instance_count: u32
§first_instance_location: Option<UniformLocation>
§

DrawIndexed

Fields

§topology: u32
§index_type: u32
§index_count: u32
§index_offset: BufferAddress
§base_vertex: i32
§first_instance: u32
§instance_count: u32
§first_instance_location: Option<UniformLocation>
§

DrawIndirect

Fields

§topology: u32
§indirect_buf: Buffer
§indirect_offset: BufferAddress
§first_instance_location: Option<UniformLocation>
§

DrawIndexedIndirect

Fields

§topology: u32
§index_type: u32
§indirect_buf: Buffer
§indirect_offset: BufferAddress
§first_instance_location: Option<UniformLocation>
§

Dispatch([u32; 3])

§

DispatchIndirect

Fields

§indirect_buf: Buffer
§indirect_offset: BufferAddress
§

ClearBuffer

Fields

§dst_target: u32
§

CopyBufferToBuffer

Fields

§src_target: u32
§dst_target: u32
§

CopyTextureToTexture

Fields

§src_target: u32
§dst_target: u32
§

CopyBufferToTexture

Fields

§src_target: u32
§dst_target: u32
§dst_format: TextureFormat
§

CopyTextureToBuffer

Fields

§src_target: u32
§src_format: TextureFormat
§dst_target: u32
§

SetIndexBuffer(Buffer)

§

BeginQuery(Query, u32)

§

EndQuery(u32)

§

TimestampQuery(Query)

§

CopyQueryResults

Fields

§query_range: Range<u32>
§dst_target: u32
§dst_offset: BufferAddress
§

ResetFramebuffer

Fields

§is_default: bool
§

BindAttachment

Fields

§attachment: u32
§

ResolveAttachment

Fields

§attachment: u32
§

InvalidateAttachments(ArrayVec<u32, { _ }>)

§

SetDrawColorBuffers(u8)

§

ClearColorF

Fields

§draw_buffer: u32
§color: [f32; 4]
§is_srgb: bool
§

ClearColorU(u32, [u32; 4])

§

ClearColorI(u32, [i32; 4])

§

ClearDepth(f32)

§

ClearStencil(u32)

§

ClearDepthAndStencil(f32, u32)

§

BufferBarrier(Buffer, BufferUses)

§

TextureBarrier(TextureUses)

§

SetViewport

Fields

§rect: Rect<i32>
§depth: Range<f32>
§

SetScissor(Rect<i32>)

§

SetStencilFunc

Fields

§face: u32
§function: u32
§reference: u32
§read_mask: u32
§

SetStencilOps

Fields

§face: u32
§write_mask: u32
§

SetDepth(DepthState)

§

SetDepthBias(DepthBiasState)

§

ConfigureDepthStencil(FormatAspects)

§

SetAlphaToCoverage(bool)

§

SetVertexAttribute

Fields

§buffer: Option<Buffer>
§buffer_desc: VertexBufferDesc
§attribute_desc: AttributeDesc
§

UnsetVertexAttribute(u32)

§

SetVertexBuffer

Fields

§index: u32
§buffer_desc: VertexBufferDesc
§

SetProgram(Program)

§

SetPrimitive(PrimitiveState)

§

SetBlendConstant([f32; 4])

§

SetColorTarget

Fields

§draw_buffer_index: Option<u32>
§

BindBuffer

Fields

§target: u32
§slot: u32
§buffer: Buffer
§offset: i32
§size: i32
§

BindSampler(u32, Option<Sampler>)

§

BindTexture

Fields

§slot: u32
§texture: Texture
§target: u32
§mip_levels: Range<u32>
§

BindImage

Fields

§slot: u32
§

InsertDebugMarker(Range<u32>)

§

PushDebugGroup(Range<u32>)

§

PopDebugGroup

§

SetPushConstants

Fields

§offset: u32

Offset from the start of the data_bytes

Trait Implementations§

source§

impl Debug for Command

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
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<T, U> TryFrom<U> for T
where U: Into<T>,

§

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>,

§

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> WasmNotSend for T
where T: Send,

source§

impl<T> WasmNotSendSync for T

source§

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