Functions
Const coordToIndex
- coordToIndex(coord: UVec2Term, width: UintTerm): Term<"uint">
Parameters
coord: UVec2Term
width: UintTerm
Returns Term<"uint">
Const indexToCoord
- indexToCoord(i: UintTerm, width: UintTerm): Lit<"uvec2">
Parameters
i: UintTerm
width: UintTerm
Returns Lit<"uvec2">
Inline function. Reverse op to indexToCoord. Not compatible with WebGL1.