updateFloatArray vs webgpu

repro: https://playground.babylonjs.com/?#P8B91Z#173

Works in webgl2, fails in webgpu. console throws Uncaught TypeError: Cannot read properties of undefined (reading 'strideSize'). I think the uniform for some reason isn’t added correctly?

Am I doing this correctly or do I need to do it differently for webgpu?

Arrays were not correctly declared in WGSL, here’s the fix:

2 Likes

Tested in v8.6.1, fix works. Thanks! Marking as solved!