Skip to content

Allow GPUTexture as resource in bind group entries - #828

Open
Vipitis wants to merge 4 commits into
mainfrom
texture-resource
Open

Allow GPUTexture as resource in bind group entries#828
Vipitis wants to merge 4 commits into
mainfrom
texture-resource

Conversation

@Vipitis

@Vipitis Vipitis commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

fixes #825

Also adds a test for all the different resource types. (although not all layout combinations are included and I don't actually run anything there.
Had to help out the gc to reuse code, I tried a new variable but that also had trouble.

Also spotted that for color attachment (in begin render pass). there is similar logic: https://www.w3.org/TR/webgpu/#color-attachments and the spec even has a helper method for it we could adopt.

@almarklein almarklein left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

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.

GPUBindGroupEntry spec divergence: what should we do?

2 participants