Expand description
Utility structures and functions.
Structs
Describes a Buffer when allocating.
The structure expected in indirect_buffer
for ComputePass::dispatch_workgroups_indirect
.
CPU accessible buffer used to download data back from the GPU.
The structure expected in indirect_buffer
for RenderEncoder::draw_indexed_indirect
.
The structure expected in indirect_buffer
for RenderEncoder::draw_indirect
.
Staging belt is a machine that uploads data.
Traits
Utility methods not meant to be in the main API.
Methods shared by RenderPass
and RenderBundleEncoder
.
Functions
Aligns a value
to an alignment
.
Get a set of backend bits from the environment variable WGPU_BACKEND.
Initialize the adapter obeying the WGPU_ADAPTER_NAME environment variable.
Initialize the adapter obeying the WGPU_ADAPTER_NAME environment variable and if it doesn’t exist fall back on a default adapter.
Treat the given byte slice as a SPIR-V module.
Version of make_spirv intended for use with Device::create_shader_module_spirv
.
Returns raw slice instead of ShaderSource.
Generates a set of backends from a comma separated list of case-insensitive backend names.
Get a power preference from the environment variable WGPU_POWER_PREF