Skip to content

Fix: Allow creating view with usage=0 from transient texture#4651

Open
beicause wants to merge 1 commit into
gpuweb:mainfrom
beicause:patch-1
Open

Fix: Allow creating view with usage=0 from transient texture#4651
beicause wants to merge 1 commit into
gpuweb:mainfrom
beicause:patch-1

Conversation

@beicause
Copy link
Copy Markdown

Found in gfx-rs/wgpu#9568. webgpu:api,validation,createView:texture_view_usage_of_multiple_usages:usage1=16;usage2=32 fails when viewUsage is 0 because isValid is false, but this should be valid because viewUsage=0 means full set of usage.

I think the spec https://gpuweb.github.io/gpuweb/#texture-view-creation needs change, too


Requirements for PR author:

  • All missing test coverage is tracked with "TODO" or .unimplemented().
  • New helpers are /** documented */ and new helper files are found in helper_index.txt.
  • Test behaves as expected in a WebGPU implementation. (If not passing, explain above.)
  • Test have be tested with compatibility mode validation enabled and behave as expected. (If not passing, explain above.)

Requirements for reviewer sign-off:

  • Tests are properly located.
  • Test descriptions are accurate and complete.
  • Tests provide complete coverage (including validation control cases). Missing coverage MUST be covered by TODOs.
  • Tests avoid over-parameterization (see case count report).

When landing this PR, be sure to make any necessary issue status updates.

@beicause beicause changed the title Allow view usage 0 for transient textures in texture_view_usage_of_multiple_usages test Change creating view from transient texture with view usage 0 to valid May 30, 2026
@beicause beicause changed the title Change creating view from transient texture with view usage 0 to valid Fix: Allow creating view with usage=0 from transient texture May 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant