Re-exports§
pub use crate::encoders::*;pub use crate::error::*;pub use crate::ids::*;pub use crate::messages::*;
Modules§
Structs§
- Adapter
- Adapter
Info - Information about an adapter.
- Bind
Group Descriptor - Describes a group of bindings and the resources to be bound.
- Bind
Group Entry - Bindable resource and the slot to bind it to. cbindgen:ignore
- Bind
Group Layout Descriptor - Describes a
BindGroupLayout. - Bind
Group Layout Entry - Describes a single binding inside a bind group.
- Blend
Component - Describes a blend component of a
BlendState. - Blend
State - Describe the blend state of a render pipeline,
within
ColorTargetState. - Buffer
Binding - Buffer
Usages - Different ways that you can use a buffer.
- Color
- RGBA double precision color.
- Color
Target State - Describes the color state of a render pipeline.
- Color
Writes - Color write mask. Disabled color channels will not be written to.
- Command
Buffer Descriptor - Describes a
CommandBuffer. - Command
Encoder Descriptor - Describes a
CommandEncoder. - Compute
Pass Descriptor - Compute
Pipeline Descriptor - Describes a compute pipeline.
- Context
Configuration - Depth
Bias State - Describes the biasing setting for the depth target.
- Depth
Stencil State - Describes the depth/stencil state in a render pipeline.
- Device
Descriptor - Describes a
Device. - Experimental
Features - Token of the user agreeing to access experimental features.
- Extent3d
- Extent of a texture related operation.
- Features
- Features that are not guaranteed to be supported.
- Fragment
State - Describes fragment processing in a render pipeline.
- Identity
Manager - Image
Subresource Range - Subresource range within an image
- Limits
- Represents the sets of limits an adapter/device supports.
- Mapping
- Multisample
State - Describes the multi-sampling state of a render pipeline.
- Origin2d
- Origin of a copy from a 2D image.
- Origin3d
- Origin of a copy to/from a texture.
- Pass
Channel - Describes an individual channel within a render pass, such as color, depth, or stencil.
- Pass
Timestamp Writes - Describes the writing of timestamp values in a render or compute pass.
- Pipeline
- Pipeline
Layout Descriptor - Describes a pipeline layout.
- Primitive
State - Describes the state of primitive assembly and rasterization in a render pipeline.
- Programmable
Stage Descriptor - Describes a programmable pipeline stage.
- Render
Bundle Depth Stencil - Describes the depth/stencil attachment for render bundles.
- Render
Bundle Encoder Descriptor - Describes a
RenderBundleEncoder. - Render
Pass Color Attachment - Describes a color attachment to a render pass.
- Render
Pass Depth Stencil Attachment - Describes a depth/stencil attachment to a render pass.
- Render
Pass Descriptor - Describes the attachments of a render pass.
- Render
Pipeline Descriptor - Describes a render (graphics) pipeline.
- Sampler
Descriptor - Describes a
Sampler - Shader
Compilation Info - Shader
Module Descriptor - Shader
Stages - Describes the shader stages that a binding will be visible from.
- Stencil
Face State - Describes stencil state in a render pipeline.
- Stencil
State - State of the stencil operation (fixed-pipeline stage).
- Texel
Copy Buffer Layout - Layout of a texture in a buffer’s memory.
- Texture
Usages - Different ways that you can use a texture.
- Texture
View Descriptor - Describes a
TextureView. - Vertex
Attribute - Vertex inputs (attributes) to shaders.
- Vertex
Buffer Layout - Describes how the vertex buffer is interpreted.
- Vertex
State - Describes the vertex process in a render pipeline.
- WebGPU
Enums§
- Address
Mode - How edges should be handled in texture addressing.
- Astc
Block - ASTC block dimensions
- Astc
Channel - ASTC RGBA channel
- Binding
Resource - Binding
Type - Type of a binding in a bind group layout.
- Blend
Factor - Alpha blend factor.
- Blend
Operation - Alpha blend operation.
- Buffer
Access Error - Buffer
Binding Type - Specific type of a buffer binding.
- Compare
Function - Comparison function used for depth and stencil operations.
- Device
Lost Reason - https://gpuweb.github.io/gpuweb/#enumdef-gpudevicelostreason
- Device
Type - Supported physical device types.
- Face
- Face of a vertex.
- Filter
Mode - Texel mixing mode when sampling between texels.
- Front
Face - Vertex winding order which classifies the “front” face of a triangle.
- HostMap
- Implemented
Language Extension - A variant of
LanguageExtension::Implemented. - Index
Format - Format of indices used with pipeline.
- LoadOp
- Operation to perform to the output attachment at the start of a render pass.
- Memory
Hints - Hints to the device about the memory allocation strategy.
- Mipmap
Filter Mode - Texel mixing mode when sampling between texels.
- Power
Preference - Power Preference when choosing a physical adapter.
- Predefined
Color Space - Color spaces supported on the web.
- Primitive
Topology - Primitive type the input mesh is composed of.
- Query
Type - Type of queries contained in a
QuerySet. - Request
Device Error - Sampler
Binding Type - Specific type of a sampler binding.
- Stencil
Operation - Operation to perform on the stencil value.
- Storage
Texture Access - Specific type of a sample in a texture binding.
- StoreOp
- Operation to perform to the output attachment at the end of a render pass.
- Texture
Aspect - Selects a subset of the data a
Textureholds. - Texture
Dimension - Dimensionality of a texture.
- Texture
Format - Format in which a texture’s texels are stored in GPU memory.
- Texture
Sample Type - Specific type of a sample in a texture binding.
- Texture
View Dimension - Dimensions of a particular texture view.
- Trace
- Controls API call tracing and specifies where the trace is written.
- Vertex
Format - Corresponds to WebGPU
GPUVertexFormat. - Vertex
Step Mode - Whether a vertex buffer is indexed by vertex or by instance.
Constants§
- COPY_
BUFFER_ ALIGNMENT - Buffer to buffer copy as well as buffer clear offsets and sizes must be aligned to this number.
- MAP_
ALIGNMENT - Minimum alignment of buffer mappings.
- PRESENTATION_
BUFFER_ COUNT
Type Aliases§
- Buffer
Address - Integral type used for
Bufferoffsets and sizes. - Buffer
Descriptor - Buffer
Size - Integral type used for
BufferSlicesizes. - Label
- Query
SetDescriptor - Render
Bundle Descriptor - Request
Adapter Options - Texel
Copy Buffer Info - cbindgen:ignore
- Texel
Copy Texture Info - cbindgen:ignore
- Texture
Descriptor - WebGPU
Adapter Response - WebGPU
Compute Pipeline Response - WebGPU
Device Response - WebGPU
Popped Error Scope Response - WebGPU
Render Pipeline Response