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

WebGPU 需要开启 float32-filterable Feature #160

Closed
xiaoiver opened this issue Jan 19, 2024 · 1 comment
Closed

WebGPU 需要开启 float32-filterable Feature #160

xiaoiver opened this issue Jan 19, 2024 · 1 comment
Assignees

Comments

@xiaoiver
Copy link
Contributor

xiaoiver commented Jan 19, 2024

https://www.w3.org/TR/webgpu/#float32-filterable
https://developer.chrome.com/blog/new-in-webgpu-119#filterable_32-bit_float_textures

未开启该特性的情况下,使用 F32_R 会报错:

None of the supported sample types (UnfilterableFloat) of [Texture] match the expected sample types (Float).
 - While validating entries[0] as a Texture.
Expected entry layout: { binding: 0, visibility: ShaderStage::Fragment, texture: { sampleType: TextureSampleType::Float, viewDimension: TextureViewDimension::e2D, multisampled: 0 } }
 - While validating [BindGroupDescriptor] against [BindGroupLayout]
 - While calling [Device].CreateBindGroup([BindGroupDescriptor]).
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Title: WebGPU needs to enable float32-filterable Feature

@xiaoiver xiaoiver mentioned this issue Jan 19, 2024
14 tasks
xiaoiver added a commit that referenced this issue Jan 19, 2024
* fix: enable filterable float32 feature in WebGPU #160

* chore: commit changeset
xiaoiver added a commit that referenced this issue Jan 19, 2024
* Fix 160 (#161)

* fix: enable filterable float32 feature in WebGPU #160

* chore: commit changeset

* chore(release): bump version (#162)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@xiaoiver xiaoiver self-assigned this Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants