8000 Wrong data type for subKernel with WebGL 2 · Issue #534 · gpujs/gpu.js · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Wrong data type for subKernel with WebGL 2 #534
Closed
@CipSoft-Components

Description

@CipSoft-Components

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

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0