antvis / g-device-api

A Device API references WebGPU implementations
https://observablehq.com/@antv/g-device-api
11 stars 1 forks source link

WebGPU 需要开启 float32-filterable Feature #160

Closed xiaoiver closed 8 months ago

xiaoiver commented 8 months ago

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 commented 8 months ago

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


Title: WebGPU needs to enable float32-filterable Feature