You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`Cannot index value ${targetStr} with index ${propertyStr}`,
378
+
`Unable to index value ${targetStr}of unknown type with index ${propertyStr}. If the value is an array, to address this, consider one of the following approaches: (1) declare the array using 'tgpu.const', (2) store the array in a buffer, or (3) define the array within the GPU function scope.`,
378
379
);
379
380
}
380
381
@@ -431,6 +432,12 @@ ${this.ctx.pre}}`;
431
432
);
432
433
}
433
434
435
+
if(callee.value===constant){
436
+
thrownewError(
437
+
'Constants cannot be defined within TypeGPU function scope. To address this, move the constant definition outside the function scope.',
0 commit comments