mirror of
https://github.com/storytold/wgpu.git
synced 2026-12-01 10:34:57 +01:00
[wgpu] make vertex buffer slots optional
This commit is contained in:
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,
|
||||
|
||||
Reference in new issue
Block a user