Open
Description
Description
As the title says.
In the following fiddle worker 0 should assign element 1, but it assigns element 0 (it's own index) to the storage array.
Either methods don't chain properly or it writes DataTexture at the wrong coordinates.
Is it possible to fix this behaviour?
Reproduction steps
- Make instancedArray.
- Compute Fn() with 1+ workers that assigns values to this array at indexes other than instanceIndex.
- Under WebGL2 values are assigned at instanceIndex instead.
Code
Fn(() => {
If( instanceIndex.equal(0), () => { //ONLY if instanceIndex is 0
posArray.element(1).assign(vec3(1, 1, 1)) //assign to element 1 only
} )
})().compute(count)
Live example
https://jsfiddle.net/gmcoh3jz/2/
Screenshots
Version
r177
Device
Desktop
Browser
Chrome
OS
Windows