[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

+2 -2
View File
@@ -218,7 +218,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: &[
@@ -233,7 +233,7 @@ impl crate::framework::Example for Example {
shader_location: 1,
},
],
}];
})];
let pipeline = device.create_render_pipeline(&wgpu::RenderPipelineDescriptor {
label: None,