geometry#isIndexed¶
Summary¶
geometry#isIndexed reports whether indexed drawing is available after upload. Use it after upload(device); it is not a test for whether index source data has been configured.
Syntax¶
Parameters¶
This API does not take parameters.
Returns¶
boolean - Whether indexed drawing is available from the uploaded geometry.
Example¶
const canvas = document.querySelector("canvas");
const wgpu = await WasmGPU.create(canvas);
const geometry = wgpu.geometry.sphere(1, 24, 16);
const value = geometry.isIndexed;
console.log(value);