We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c31bb13 commit 6003bc3Copy full SHA for 6003bc3
apps/typegpu-docs/src/examples/tests/tgsl-parsing-test/pointers.ts
@@ -49,13 +49,13 @@ export const pointersTest = tgpu.fn([], d.bool)(() => {
49
s = s && std.allEq(myStruct.$.vec, d.vec2f(1, 0));
50
51
// private pointers
52
- modifyNumPrivate(privateNum);
+ modifyNumPrivate(d.ref(privateNum.$));
53
s = s && (privateNum.$ === 1);
54
55
- modifyVecPrivate(privateVec);
+ modifyVecPrivate(d.ref(privateVec.$));
56
s = s && std.allEq(privateVec.$, d.vec2f(1, 0));
57
58
- modifyStructPrivate(privateStruct);
+ modifyStructPrivate(d.ref(privateStruct.$));
59
s = s && std.allEq(privateStruct.$.vec, d.vec2f(1, 0));
60
61
return s;
0 commit comments