wgsl-bindgen icon indicating copy to clipboard operation
wgsl-bindgen copied to clipboard

Allow overriding texture sample type.

Open Swoorup opened this issue 1 year ago • 0 comments

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,
},

Swoorup avatar Jul 05 '24 11:07 Swoorup