How to pass in a Vec<BindGroupLayout> to create_pipeline_layout?
#9113
-
|
The signature for But I have a let bind_group_layouts = vec![
device.create_bind_group_layout(&BindGroupLayoutDescriptor {
label: None,
entries: &[
...
],
}),
];
device.create_pipeline_layout(&PipelineLayoutDescriptor {
label: None,
bind_group_layouts: bind_group_layouts.as_slice(),
immediate_size: 0,
});That doesn't work, because it's a I need it to be a |
Beta Was this translation helpful? Give feedback.
Answered by
andyleiserson
Feb 25, 2026
Replies: 1 comment 3 replies
-
|
Something like |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
Pauan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Something like
&bind_group_layouts.iter().collect::<Vec<_>>()should work, no?