[wgpu] make vertex buffer slots optional

This commit is contained in:
teoxoy authored and Andy Leiserson committed 2026-04-14 17:20:15 -07:00
1 parent 35fd939877
commit 67b4f3c7e5
28 files changed
+143 -126

No files matched your search

@@ -53,7 +53,7 @@ impl crate::framework::Example for Example {
let shader = device.create_shader_module(wgpu::include_wgsl!("shader.wgsl"));
let vertex_buffers = [wgpu::VertexBufferLayout {
let vertex_buffers = [Some(wgpu::VertexBufferLayout {
array_stride: vertex_size as wgpu::BufferAddress,
step_mode: wgpu::VertexStepMode::Vertex,
attributes: &[wgpu::VertexAttribute {
@@ -61,7 +61,7 @@ impl crate::framework::Example for Example {
offset: 0,
shader_location: 0,
}],
}];
})];
let mask_pipeline = device.create_render_pipeline(&wgpu::RenderPipelineDescriptor {
label: None,