Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow overriding texture sample type. #28

Open
Swoorup opened this issue Jul 5, 2024 · 0 comments
Open

Allow overriding texture sample type. #28

Swoorup opened this issue Jul 5, 2024 · 0 comments

Comments

@Swoorup
Copy link
Owner

Swoorup commented Jul 5, 2024

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,
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant