@absulit/points
Version:
A Generative Art library made in WebGPU
54 lines (45 loc) • 899 B
JavaScript
/* @ts-self-types="./defaultVertexStructs.d.ts" */
/**
* non used structs unless required
* <br>
* <br>
* These are wgsl functions, not js functions.
* The function is enclosed in a js string constant,
* to be appended into the code to reference it in the string shader.
* @module defaultVertexStructs
* @ignore
*/
/**
* Unused structs for the future.
*/
const defaultVertexStructs = /*wgsl*/`
struct Color{
r: f32,
g: f32,
b: f32,
a: f32
}
struct Position{
x: f32,
y: f32,
z: f32,
w: f32
}
struct Vertex {
position: Position,
color: Color,
uv: vec2f,
}
struct Point {
vertex0: Vertex,
vertex1: Vertex,
vertex2: Vertex,
vertex3: Vertex,
vertex4: Vertex,
vertex5: Vertex,
}
struct Points {
points: array<Point>
}
`;
export { defaultVertexStructs as default };