mirror of
https://github.com/sotrh/learn-wgpu.git
synced 2024-11-10 01:10:28 +00:00
fix wgpu::SamplerBindingType
is now parameter of wgpu::BindingType::Sampler
This commit is contained in:
parent
eaeb7931a1
commit
c81dfd34ba
@ -181,14 +181,13 @@ let texture_bind_group_layout = device.create_bind_group_layout(
|
|||||||
wgpu::BindGroupLayoutEntry {
|
wgpu::BindGroupLayoutEntry {
|
||||||
binding: 1,
|
binding: 1,
|
||||||
visibility: wgpu::ShaderStages::FRAGMENT,
|
visibility: wgpu::ShaderStages::FRAGMENT,
|
||||||
ty: wgpu::BindingType::Sampler {
|
ty: wgpu::BindingType::Sampler(
|
||||||
// This is only for TextureSampleType::Depth
|
// SamplerBindingType::Comparison is only for TextureSampleType::Depth
|
||||||
comparison: false,
|
// SamplerBindingType::Filtering if the sample_type of the texture is:
|
||||||
// This should be true if the sample_type of the texture is:
|
|
||||||
// TextureSampleType::Float { filterable: true }
|
// TextureSampleType::Float { filterable: true }
|
||||||
// Otherwise you'll get an error.
|
// Otherwise you'll get an error.
|
||||||
filtering: true,
|
wgpu::SamplerBindingType::Filtering,
|
||||||
},
|
),
|
||||||
count: None,
|
count: None,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user