Skip to content

Updating TextureFormat matching specs#2954

Merged
cwfitzgerald merged 15 commits intogfx-rs:masterfrom
gents83:Fix-web-target-clean-compilation
Sep 20, 2022
Merged

Updating TextureFormat matching specs#2954
cwfitzgerald merged 15 commits intogfx-rs:masterfrom
gents83:Fix-web-target-clean-compilation

Conversation

@gents83
Copy link
Copy Markdown
Contributor

@gents83 gents83 commented Aug 11, 2022

Fixing compilation error - when doing a full clean:

error[E0599]: no variant or associated item named Depth24unormStencil8 found for enum GpuTextureFormat in the current scope
--> D:\a\INOX\INOX\extern\wgpu\wgpu\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

Copy link
Copy Markdown
Member

@cwfitzgerald cwfitzgerald left a comment

Choose a reason for hiding this comment

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

Thanks!

@maxammann
Copy link
Copy Markdown
Contributor

I'd propose to merge this as soon as possible and do the other work in a separate pr. This is breaking our CI currently.

@gents83
Copy link
Copy Markdown
Contributor Author

gents83 commented Aug 26, 2022

Linking Missing TextureFormats #967

@gents83 gents83 requested a review from cwfitzgerald August 26, 2022 12:20
@gents83
Copy link
Copy Markdown
Contributor Author

gents83 commented Aug 26, 2022

Linking Texture Format Depth24unormStencil8 not exist in WebGPU #2942

@maxammann
Copy link
Copy Markdown
Contributor

Thanks @gents83 for rocking this PR :D

@gents83 gents83 requested a review from cwfitzgerald August 29, 2022 05:42
@maxammann
Copy link
Copy Markdown
Contributor

A few tests seem to fail.

       note: label = `texture Depth24PlusStencil8`
    Texture format Depth24PlusStencil8 can't be used due to missing features.
    Features DEPTH24PLUS_STENCIL8 are required but not enabled on the device

Should DEPTH24PLUS_STENCIL8 be required by default by wgpu?

@gents83
Copy link
Copy Markdown
Contributor Author

gents83 commented Sep 4, 2022

It should be ok now- need just a new review from @cwfitzgerald

@maxammann
Copy link
Copy Markdown
Contributor

Workaround right now is web-sys = "=0.3.58"

@gents83 gents83 changed the title Fix web target -> remove Depth24unormStencil8 not existing anymore Updating TextureFormat matching specs Sep 7, 2022
@gents83
Copy link
Copy Markdown
Contributor Author

gents83 commented Sep 16, 2022

Is there any chance to integrate this to fix the web target?

@cwfitzgerald
Copy link
Copy Markdown
Member

Just have formatting and a merge conflict and we're g2g

Copy link
Copy Markdown
Collaborator

@crowlKats crowlKats left a comment

Choose a reason for hiding this comment

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

spec wise looks correct

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.

4 participants