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

Surface usage incorrectly always reported as wgt::TextureUsages::RENDER_ATTACHMENT for WebGPU #6667

Open
Wumpf opened this issue Dec 5, 2024 · 1 comment
Labels
api: webgpu Issues with direct interface with WebGPU type: bug Something isn't working

Comments

@Wumpf
Copy link
Member

Wumpf commented Dec 5, 2024

The WebGPU implementation is currently hardcoded to report only render attachment being supported.
Evidently this is not correct - chrome accepts other usages as well.

However, to me the spec is a bit unclear whether all usages are supposed to be supported, see also
https://gpuweb.github.io/gpuweb/#dom-gpucanvasconfiguration-usage

@Wumpf Wumpf added type: bug Something isn't working api: webgpu Issues with direct interface with WebGPU labels Dec 5, 2024
@Wumpf
Copy link
Member Author

Wumpf commented Dec 5, 2024

It's probably really arbitrary usages that should be supported here. See gpuweb/gpuweb#437 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: webgpu Issues with direct interface with WebGPU type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant