Skip to content

Commit 3a9ecba

Browse files
committed
Set the texture to filterable
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]).
1 parent 2207dd1 commit 3a9ecba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pipeline.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ fn build<D>(
247247
visibility: wgpu::ShaderStages::FRAGMENT,
248248
ty: wgpu::BindingType::Texture {
249249
sample_type: wgpu::TextureSampleType::Float {
250-
filterable: false,
250+
filterable: true,
251251
},
252252
view_dimension: wgpu::TextureViewDimension::D2,
253253
multisampled: false,

0 commit comments

Comments
 (0)