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

Explain “texture view is not renderable” error #3541

Closed
kpreid opened this issue Mar 1, 2023 · 1 comment · Fixed by #3549
Closed

Explain “texture view is not renderable” error #3541

kpreid opened this issue Mar 1, 2023 · 1 comment · Fixed by #3549
Labels
area: validation Issues related to validation, diagnostics, and error handling help required We need community help to make this happen. type: enhancement New feature or request

Comments

@kpreid
Copy link
Contributor

kpreid commented Mar 1, 2023

In wgpu 0.15.0:

thread 'main' panicked at 'wgpu error: Validation Error

Caused by:
    In a RenderPass
      note: encoder = `EverythingRenderer::draw_frame_linear()`
    In a pass parameter
      note: command buffer = `EverythingRenderer::draw_frame_linear()`
    attachment texture view is not renderable

The specific problem here was that the texture view has more than one mipmap level, but the error message does not communicate that; one is left guessing and/or digging through the specification. A better message would say which condition was violated and what the disallowed value was.

@teoxoy teoxoy added type: enhancement New feature or request help required We need community help to make this happen. area: validation Issues related to validation, diagnostics, and error handling labels Mar 1, 2023
@cwfitzgerald
Copy link
Member

cwfitzgerald commented Mar 1, 2023

New error is:

Caused by:
    In a RenderPass
      note: encoder = `<CommandBuffer-(0, 1, Vulkan)>`
    In a pass parameter
      note: command buffer = `<CommandBuffer-(0, 1, Vulkan)>`
    The color attachment at index 0's texture view is not renderable:
    The texture this view references doesn't include the RENDER_ATTACHMENT usage. Provided usages: COPY_DST | TEXTURE_BINDING

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: validation Issues related to validation, diagnostics, and error handling help required We need community help to make this happen. type: enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants