Skip to content

Geometry.isIndexed

Summary

Geometry.isIndexed reads the current isIndexed value from this Geometry instance. Use it to inspect runtime state without mutating resources.

Syntax

Geometry.isIndexed: boolean
const value = geometry.isIndexed;

Parameters

This API does not take parameters.

Returns

boolean - Boolean result indicating whether the queried condition is satisfied.

Type Details

// No additional descriptor expansion is required for this signature.

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);

See Also