MCPcopy Index your code
hub / github.com/ChartGPU/ChartGPU / writeTransformMat4F32

Function writeTransformMat4F32

src/renderers/createScatterRenderer.ts:117–135  ·  view source on GitHub ↗
(out: Float32Array, ax: number, bx: number, ay: number, by: number)

Source from the content-addressed store, hash-verified

115};
116
117const writeTransformMat4F32 = (out: Float32Array, ax: number, bx: number, ay: number, by: number): void => {
118 // Column-major mat4x4 for: clip = M * vec4(x, y, 0, 1)
119 out[0] = ax;
120 out[1] = 0;
121 out[2] = 0;
122 out[3] = 0; // col0
123 out[4] = 0;
124 out[5] = ay;
125 out[6] = 0;
126 out[7] = 0; // col1
127 out[8] = 0;
128 out[9] = 0;
129 out[10] = 1;
130 out[11] = 0; // col2
131 out[12] = bx;
132 out[13] = by;
133 out[14] = 0;
134 out[15] = 1; // col3
135};
136
137const computePlotScissorDevicePx = (
138 gridArea: GridArea

Callers 1

writeVsUniformsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected