Skip to content

GL Backend Doesn't Support Cube Map Arrays #1746

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

Closed
zicklag opened this issue Jul 30, 2021 · 1 comment
Closed

GL Backend Doesn't Support Cube Map Arrays #1746

zicklag opened this issue Jul 30, 2021 · 1 comment
Labels
area: api Issues related to API surface backend: gles Issues with GLES or WebGL needs information Further information is requested type: enhancement New feature or request

Comments

@zicklag
Copy link
Contributor

zicklag commented Jul 30, 2021

Description
GLES backend does not appear to support cube map array textures. This is more of a discussion to see how we might be able to support cube arrays if that is possible at all.

Repro steps
I ran into this while trying to run the new Bevy renderer on the GL backend. I don't have a small example, to test unfortunately.

Expected vs observed behavior
Expected that I could create a cube map array, but got an invalid operation error:

Jul 29 19:20:22.748 ERROR submit_graph_commands: wgpu_hal::gles::egl: GLES: [API/Error] ID 1 : GL_INVALID_OPERATION in glFramebufferTexture2D(invalid textarget GL_TEXTURE_CUBE_MAP_ARRAY)    

Extra materials
None

Platform
Ubuntu 20.04 WGPU@master (bbeb30a)


Edit: A quick check seems to show that cube map arrays are supported in GLES 3.2. Also there is this extension for ES 3.1 EXT_texture_cube_map_array. I'd bet that this is impossible to support in WebGL. 😦

Edit 2: From what I see, it looks like we already have a downlevel flag for this, and I'm actually running GLES 3.2 so it should work. I'll look more into what the problem might be.

@cwfitzgerald cwfitzgerald added area: api Issues related to API surface type: enhancement New feature or request needs information Further information is requested labels Jul 30, 2021
@teoxoy teoxoy added the backend: gles Issues with GLES or WebGL label Dec 5, 2022
@teoxoy
Copy link
Member

teoxoy commented Oct 13, 2023

Closing as this should be resolved.

The only way to run into this at the time was:

@teoxoy teoxoy closed this as completed Oct 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: api Issues related to API surface backend: gles Issues with GLES or WebGL needs information Further information is requested type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants