Module wgpu.utils

Utility structures and functions.

Loosely modelled after wgpu::util.

See Also

wgpu::util

Functions

NameDescription
createBuffer(device, usage, data, label) Creates a buffer in which data is loaded.
resize(extant, device, width, height) Recreates a new swap chain given an extant swap chain and a new size.
resize(extant, device, width, height) Recreates a new texture given an extant texture and a new size.
resize(extant, device, size) Recreates a new buffer given an extant buffer and a new size.
valid(resource) Whether a handle to a wgpu-managed resource is valid, i.e. resource is not null and it's currently initialized.
viewDimension(dimension, depthOrArrayLayers) Convert the given texture dimension into a texture view dimension.

Interfaces

NameDescription
RenderEncoder Methods shared by RenderPass and wgpu.api.RenderBundleEncoder.

Manifest constants

NameTypeDescription
isResource Detects whether T is a handle to a wgpu-managed resource.

Aliases

NameTypeDescription
BufferAddress ulong Integral type used for buffer offsets.
BufferSlice ubyte[] Slice into a Buffer.