vec3h
constvec3h:Vec3h
Defined in: packages/typegpu/src/data/vector.ts:146
Schema representing vec3h - a vector with 3 elements of type f16. Also a constructor function for this vector value.
Examples
Section titled βExamplesβconst vector = d.vec3h(); // (0.0, 0.0, 0.0)const vector = d.vec3h(1); // (1.0, 1.0, 1.0)const vector = d.vec3h(1, 2, 3.5); // (1.0, 2.0, 3.5)const buffer = root.createBuffer(d.vec3h, d.vec3h(0, 1, 2)); // buffer holding a d.vec3h value, with an initial value of vec3h(0, 1, 2);