isWgslArray
isWgslArray(
schema):schema is WgslArray<BaseData>
Checks whether passed in value is an array schema, as opposed to, e.g., a disarray schema.
Array schemas can be used to describe uniform and storage buffers, whereas disarray schemas cannot.
Parameters
Section titled “Parameters”schema
Section titled “schema”unknown
Returns
Section titled “Returns”schema is WgslArray<BaseData>
Example
Section titled “Example”isWgslArray(d.arrayOf(d.u32, 4)) // trueisWgslArray(d.disarray(d.u32, 4)) // falseisWgslArray(d.vec3f) // false