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

Texture Format Depth24unormStencil8 not exist in WebGPU #2942

Closed
sseanwang opened this issue Aug 5, 2022 · 1 comment
Closed

Texture Format Depth24unormStencil8 not exist in WebGPU #2942

sseanwang opened this issue Aug 5, 2022 · 1 comment

Comments

@sseanwang
Copy link

sseanwang commented Aug 5, 2022

Description
error[E0599]: no variant or associated item named Depth24unormStencil8 found for enum GpuTextureFormat in the current scope
--> wgpu-0.13.1\src\backend\web.rs:553:52
|
553 | TextureFormat::Depth24UnormStencil8 => tf::Depth24unormStencil8,
| ^^^^^^^^^^^^^^^^^^^^
| |
| variant or associated item not found in GpuTextureFormat
| help: there is a variant with a similar name: Depth24plusStencil8

For more information about this error, try rustc --explain E0599.
error: could not compile wgpu due to previous error

Repro steps
There is no "depth24unorm-stencil8" in webgpu based on the https://www.w3.org/TR/webgpu/ , it will cause compile error when trying to use any texture format when target is wasm32 and using webgpu. (not webgl feature)

Expected vs observed behavior
Remove TextureFormat::Depth24UnormStencil8 in web.rs

TextureFormat::Depth24UnormStencil8 => tf::Depth24unormStencil8,

Platform
Windows 11
version wgpu-0.13.1

@teoxoy
Copy link
Member

teoxoy commented Nov 9, 2022

This was fixed by #2954, closing.

@teoxoy teoxoy closed this as completed Nov 9, 2022
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

No branches or pull requests

2 participants