wgsl-bindgen
wgsl-bindgen copied to clipboard
Allow overriding texture sample type.
On some occasion, instead of the default option which makes all texture binding to be filterable for texture_2d<f32>, we might not want them to filterable in some odd cases.
wgpu::BindGroupLayoutEntry {
binding: 0,
visibility: wgpu::ShaderStages::VERTEX_FRAGMENT,
ty: wgpu::BindingType::Texture {
sample_type: wgpu::TextureSampleType::Float {
filterable: false,
},
view_dimension: wgpu::TextureViewDimension::D2,
multisampled: false,
},
count: None,
},