WasmGPU.createTransform().disposed¶
Summary¶
WasmGPU.createTransform().disposed reports whether a transform has been disposed. A disposed transform no longer owns a valid slot in the transform store. Most mutating or query operations on disposed transforms throw to prevent invalid memory access. Use this property to guard optional cleanup paths in tooling or editor code.
Syntax¶
Parameters¶
This API does not take parameters.
Returns¶
boolean - true after dispose() has been called, otherwise false.
Example¶
const canvas = document.querySelector("canvas");
const wgpu = await WasmGPU.create(canvas);
const t = wgpu.createTransform();
console.log(t.disposed);
t.dispose();
if (t.disposed) {
console.log("transform released");
}