Skip to content

Big big big buffers and how to work with them #6130

Closed Answered by alphastrata
alphastrata asked this question in Q&A
Discussion options

You must be logged in to vote

Edit: I solved this, thank you @jasmine for your help.

You need a few things, one the following features:

 let (device, queue) = adapter
        .request_device(
            &wgpu::DeviceDescriptor {
                label: None,
                required_features: Features::STORAGE_RESOURCE_BINDING_ARRAY
                    | Features::UNIFORM_BUFFER_AND_STORAGE_TEXTURE_ARRAY_NON_UNIFORM_INDEXING
                    | Features::BUFFER_BINDING_ARRAY,

                memory_hints: wgpu::MemoryHints::Performance,
                ..Default::default()
            },
            None,
        )
        .await
        .unwrap();

and two you need to also use the binding_array keyword, which these…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by alphastrata
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant