Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WGSL texture_2d_array with 1 layer is not translated to an array texture for WebGL2 GLSL #2161

Closed
superdump opened this issue Nov 7, 2021 · 3 comments
Labels
api: gles Issues with GLES or WebGL area: api Issues related to API surface type: bug Something isn't working

Comments

@superdump
Copy link
Contributor

Description
Using a depth buffer texture_2d_array with 1 layer in WGSL works fine with Vulkan, Metal, etc. But with WebGL2 it is translated as a non-array texture and fails silently.

Repro steps
There is an example in #2138 that exhibits this issue. Please shout at me if you want me to test something!

Expected vs observed behavior
Expected: Array texture shadow map with 1 layer works as it does for native.
Observed: Silent failure.

Platform
Windows 10, wpgu master, WebGL2.

@kvark
Copy link
Member

kvark commented Nov 9, 2021

GLES backend guesses the type of the texture currently: it checks for n==1, and it checks for n % 6, both are crappy. There needs to be a proper solution instead of this guesswork, but I don't know what this is yet.

@kvark kvark added area: api Issues related to API surface type: bug Something isn't working labels Nov 9, 2021
@teoxoy teoxoy added the api: gles Issues with GLES or WebGL label Feb 24, 2023
@teoxoy
Copy link
Member

teoxoy commented Feb 28, 2023

Related: #1614

@cwfitzgerald
Copy link
Member

Closing in favor of #1614

@cwfitzgerald cwfitzgerald closed this as not planned Won't fix, can't repro, duplicate, stale Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: gles Issues with GLES or WebGL area: api Issues related to API surface type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants