Closed
Description
What is wrong?
When I use a webgl2 context, kernel map, and a custom return type like "Array(2)", the subKernelResult_ variable is declared as float, and produces a fragment shader compiling error. This do not happen with webgl context (WebGL 1).
Where does it happen?
When using createKernelMap with the returnType "Array(2)" in a webgl2 context.
How do we replicate the issue?
- Create and use a webgl2 context
- Create a KernelMap with returnType "Array(2)"
- Run the kernel
How important is this (1-5)?
5
Expected behavior (i.e. solution)
That it works like with webgl 1
Other Comments
Edit: The problem is in the WebGL2Kernel.getKernelString()
implementation. For WebGL2 there is only made a difference bewteen int and float, but not the other data types. The switch-cacse form WebGL 1 for the different datatypes is missing.
Metadata
Metadata
Assignees
Labels
No labels