Hi:
I’m using WEBGPU, and want to input array1 to a compute shader, as code 83 below:
According to my expectations,buffer1.numbers[0] at code 148 should be equal to 1,and ground should turns to red(matching the last number in array1):
however, the ground shows black(not red),which means buffer1.numbers[0] is not equal to1(not correspond to array1)
what should I do to correspond the elements of array1 and struct Triangle{…}
what should I do to correspond the elements of array1 and struct Triangle{…}
what should I do to correspond the elements of array1 and struct Triangle{…}
the playground project: Compute shader error | Babylon.js Playground (babylonjs.com)