Expand description
Modules§
- util
- Utility structures and functions.
Macros§
- include_
spirv - Macro to load a SPIR-V module statically.
- vertex_
attr_ array - Macro to produce an array of [
VertexAttributeDescriptor
]. - vertex_
format_ size - Helper macro which turns a vertex attribute type into a size.
Structs§
- Adapter
- Handle to a physical graphics and/or compute device.
- Adapter
Info - Metadata about a backend adapter.
- Backend
Bit - Represents the backends that wgpu will use.
- Bind
Group - Handle to a binding group.
- Bind
Group Descriptor - Describes a group of bindings and the resources to be bound.
- Bind
Group Layout - Handle to a binding group layout.
- Bind
Group Layout Descriptor - Describes a [
BindGroupLayout
]. - Bind
Group Layout Entry - Describes a single binding inside a bind group.
- Binding
- Bindable resource and the slot to bind it to.
- Blend
Descriptor - Describes the blend state of a pipeline.
- Buffer
- Handle to a GPU-accessible buffer.
- Buffer
Async Error - Error occurred when trying to async map a number.
- Buffer
Copy View - View of a buffer which can be used to copy to/from a texture.
- Buffer
Descriptor Base - Describes a [
Buffer
]. - Buffer
Slice - Slice into a
Buffer
. - Buffer
Usage - Different ways that you can use a buffer.
- Buffer
View - Read only view into a mapped buffer.
- Buffer
View Mut - Write only view into mapped buffer.
- Color
- RGBA double precision color.
- Color
State Descriptor - Describes the color state of a render pipeline.
- Color
Write - Color write mask. Disabled color channels will not be written to.
- Command
Buffer - Handle to a command buffer on the GPU.
- Command
Buffer Descriptor - Describes a [
CommandBuffer
]. - Command
Encoder - Encodes a series of GPU operations.
- Command
Encoder Descriptor Base - Describes a [
CommandEncoder
]. - Compute
Pass - In-progress recording of a compute pass.
- Compute
Pipeline - Handle to a compute pipeline.
- Compute
Pipeline Descriptor - Describes a compute pipeline.
- Depth
Stencil State Descriptor - Describes the depth/stencil state in a render pipeline.
- Device
- Open connection to a graphics and/or compute device.
- Device
Descriptor - Describes a [
Device
]. - Extent3d
- Extent of a texture related operation.
- Features
- Features that are not guaranteed to be supported.
- Instance
- Context for all other wgpu objects. Instance of wgpu.
- Limits
- Represents the sets of limits an adapter/device supports.
- Operations
- Pair of load and store operations for an attachment aspect.
- Origin3d
- Origin of a copy to/from a texture.
- Pipeline
Layout - Handle to a pipeline layout.
- Pipeline
Layout Descriptor - Describes a pipeline layout.
- Programmable
Stage Descriptor - Describes a programmable pipeline stage.
- Queue
- Handle to a command queue on a device.
- Rasterization
State Descriptor - Describes the state of the rasterizer in a render pipeline.
- Render
Bundle - Pre-prepared reusable bundle of GPU operations.
- Render
Bundle Descriptor Base - Describes a [
RenderBundle
]. - Render
Bundle Encoder - Encodes a series of GPU operations into a reusable “render bundle”.
- Render
Bundle Encoder Descriptor - Describes a [
RenderBundleEncoder
]. - Render
Pass - In-progress recording of a render pass.
- Render
Pass Color Attachment Descriptor - Describes a color attachment to a
RenderPass
. - Render
Pass Depth Stencil Attachment Descriptor - Describes a depth/stencil attachment to a
RenderPass
. - Render
Pass Descriptor - Describes the attachments of a
RenderPass
. - Render
Pipeline - Handle to a rendering (graphics) pipeline.
- Render
Pipeline Descriptor - Describes a render (graphics) pipeline.
- Request
Adapter Options - Options for requesting adapter.
- Request
Device Error - Requesting a device failed.
- Sampler
- Handle to a sampler.
- Sampler
Descriptor Base - Describes a [
Sampler
] - Shader
Module - Handle to a compiled shader module.
- Shader
Stage - Describes the shader stages that a binding will be visible from.
- Stencil
State Face Descriptor - Describes stencil state in a render pipeline.
- Surface
- Handle to a presentable surface.
- Swap
Chain - Handle to a swap chain.
- Swap
Chain Descriptor - Describes a [
SwapChain
]. - Swap
Chain Frame - Result of a successful call to
SwapChain::get_next_frame
. - Swap
Chain Texture - Swap chain image that can be rendered to.
- Texture
- Handle to a texture on the GPU.
- Texture
Copy View - View of a texture which can be used to copy to/from a buffer/texture.
- Texture
Data Layout - Layout of a texture in a buffer’s memory.
- Texture
Descriptor Base - Describes a [
Texture
]. - Texture
Usage - Different ways that you can use a texture.
- Texture
View - Handle to a texture view.
- Texture
View Descriptor Base - Describes a [
TextureView
]. - Vertex
Attribute Descriptor - Vertex inputs (attributes) to shaders.
- Vertex
Buffer Descriptor - Describes how the vertex buffer is interpreted.
- Vertex
State Descriptor - Describes vertex input state for a render pipeline.
Enums§
- Address
Mode - How edges should be handled in texture addressing.
- Backend
- Backends supported by wgpu.
- Binding
Resource - Resource that can be bound to a pipeline.
- Binding
Type - Specific type of a binding.
- Blend
Factor - Alpha blend factor.
- Blend
Operation - Alpha blend operation.
- Compare
Function - Comparison function used for depth and stencil operations.
- Cull
Mode - Type of faces to be culled.
- Device
Type - Supported physical device types.
- Filter
Mode - Texel mixing mode when sampling between texels.
- Front
Face - Winding order which classifies the “front” face.
- Index
Format - Format of indices used with pipeline.
- Input
Step Mode - Rate that determines when vertex data is advanced.
- LoadOp
- Operation to perform to the output attachment at the start of a renderpass.
- Maintain
- Passed to
Device::poll
to control if it should block or not. This has no effect on the web. - MapMode
- Type of buffer mapping.
- Power
Preference - Power Preference when choosing a physical adapter.
- Present
Mode - Behavior of the presentation engine based on frame rate.
- Primitive
Topology - Primitive type the input mesh is composed of.
- Shader
Module Source - Source of a shader module.
- Stencil
Operation - Operation to perform on the stencil value.
- Swap
Chain Error - Result of an unsuccessful call to
SwapChain::get_next_frame
. - Swap
Chain Status - Status of the recieved swapchain image.
- Texture
Aspect - Kind of data the texture holds.
- Texture
Component Type - Type of data shaders will read from a texture.
- Texture
Dimension - Dimensionality of a texture.
- Texture
Format - Underlying texture data format.
- Texture
View Dimension - Dimensions of a particular texture view.
- Vertex
Format - Vertex Format for a Vertex Attribute (input).
Constants§
- BIND_
BUFFER_ ALIGNMENT - Bound uniform/storage buffer offsets must be aligned to this number.
- COPY_
BUFFER_ ALIGNMENT - Buffer to buffer copy offsets and sizes must be aligned to this number.
- COPY_
BYTES_ PER_ ROW_ ALIGNMENT - Buffer-Texture copies must have
bytes_per_row
aligned to this number.
Type Aliases§
- Buffer
Address - Integral type used for buffer offsets.
- Buffer
Descriptor - Describes a
Buffer
. - Buffer
Size - Integral type used for buffer slice sizes.
- Command
Encoder Descriptor - Describes a
CommandEncoder
. - Dynamic
Offset - Integral type used for dynamic bind group offsets.
- Render
Bundle Descriptor - Describes a
RenderBundle
. - Sampler
Descriptor - Describes a
Sampler
. - Shader
Location - Integral type used for binding locations in shaders.
- Texture
Descriptor - Describes a
Texture
. - Texture
View Descriptor - Describes a
TextureView
.