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

Make wgpu_glyph work on Chrome #80

Merged
merged 2 commits into from
Nov 16, 2021
Merged

Make wgpu_glyph work on Chrome #80

merged 2 commits into from
Nov 16, 2021

Conversation

Bobo1239
Copy link
Contributor

Followup to #79. See the commit messages for details. With these fixes wgpu_glyph works in Chrome Canary. 🎉

The WebGPU spec mandates that strip_index_format is set even though
we're not using draw_indexed(). wgpu-rs now also validates that since
gfx-rs/wgpu#2177.
wgpu doesn't yet validate this but Chrome does and complains with:

Texture binding (group:0, binding:2) is TextureSampleType::UnfilterableFloat but used statically with a sampler (group:0, binding:1) that's SamplerBindingType::Filtering
- While validating fragment stage (module: [ShaderModule "Glyph Shader"], entryPoint: fs_main).
- While validating fragment state.
- While calling [Device].CreateRenderPipeline([RenderPipelineDescriptor]).
@hecrj hecrj added the bug Something isn't working label Nov 16, 2021
@hecrj hecrj added this to the 0.15.2 milestone Nov 16, 2021
Copy link
Owner

@hecrj hecrj left a comment

Choose a reason for hiding this comment

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

Awesome! Thank you 🥳

@hecrj hecrj merged commit f9f9adb into hecrj:master Nov 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants