Expand description
Utility structures and functions that are built on top of the main wgpu API.
Nothing in this module is a part of the WebGPU API specification;
they are unique to the wgpu library.
Structs§
- Describes a Buffer when allocating.
- Argument buffer layout for dispatch_indirect commands.
- CPU accessible buffer used to download data back from the GPU.
- Argument buffer layout for draw_indexed_indirect commands.
- Argument buffer layout for draw_indirect commands.
- Efficiently performs many buffer writes by sharing and reusing temporary buffers.
- Texture
Blitter wgslTexture Blitting (Copying) Utility - A builder for the
TextureBlitterutility. If you want the defaultTextureBlitteruseTextureBlitter::newinstead.
Enums§
- Order in which TextureData is laid out in memory.
Traits§
- Utility methods not meant to be in the main API.
- Methods shared by
RenderPassandRenderBundleEncoder. - Adds extra conversion functions to
TextureFormat.
Functions§
- Aligns a
valueto analignment. - 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.
- Determines whether the
Backends::BROWSER_WEBGPUbackend is supported. - make_
spirv spirvTreat 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. - Create an new instance of wgpu, but disabling
Backends::BROWSER_WEBGPUif no WebGPU support was detected. - A recommended key for storing
PipelineCaches for the adapter associated with the givenAdapterInfoThis key will define a class of adapters for which the same cache might be valid.