Module wgpu.utils
Utility structures and functions.
Functions
Name | Description |
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.
|
Manifest constants
Name | Type | Description |
isResource
|
|
Detects whether T is a handle to a wgpu -managed resource.
|