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

gles3 issue with multisampled texture #1883

Closed
whiterabbit42k opened this issue Aug 30, 2021 · 4 comments
Closed

gles3 issue with multisampled texture #1883

whiterabbit42k opened this issue Aug 30, 2021 · 4 comments
Labels
api: gles Issues with GLES or WebGL type: bug Something isn't working

Comments

@whiterabbit42k
Copy link

Description
Running has error:

[2021-08-30T02:46:19Z ERROR wgpu_hal::gles::egl] GLES: [API/Error] ID 1 : GL_INVALID_ENUM in glTexStorage2DMultisample(target=GL_TEXTURE_2D)

Repro steps
Not sure what is causing it. I have this in a wgsl shader:

[[group(0), binding(0)]]
var depth: texture_multisampled_2d<f32>;

Expected vs observed behavior
Expect to run without error.

Platform
wgpu 0.10, linux, x11.

@kvark
Copy link
Member

kvark commented Aug 30, 2021

What are you running, exactly?

@cwfitzgerald cwfitzgerald added the type: bug Something isn't working label Sep 24, 2021
@teoxoy teoxoy added the api: gles Issues with GLES or WebGL label Feb 24, 2023
@Aaron1011
Copy link
Contributor

Aaron1011 commented Mar 26, 2023

I encountered a similar issue. It appears to be caused by creating a texture with sample_count > 1 and usage flags of wgpu::TextureUsages::RENDER_ATTACHMENT | wgpu::TextureUsages::COPY_SRC. Using a usage flags of just wgpu::TextureUsages::RENDER_ATTACHMENT fixes the error.

@Wumpf
Copy link
Member

Wumpf commented Mar 27, 2023

I haven't validated myself, but according to this issue it's not possible to have anything but pure render targets for textures with MSAA on WebGL #2117
which pretty much implies that you need to do a standard resolve first and can't use an MSAA target for anything else

@cwfitzgerald
Copy link
Member

Closing in favor of #2117

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 type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants