Merge pull request #115 from pudnax/light_layout_typo

Light layout typo
This commit is contained in:
sotrh 2020-10-21 17:06:54 -06:00 committed by GitHub
commit 06e7818e7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,10 +59,14 @@ Don't forget to add the `light` and `light_buffer` to `State`. After that we nee
```rust
let light_bind_group_layout =
device.create_bind_group_layout(&wgpu::BindGroupLayoutDescriptor {
bindings: &[wgpu::BindGroupLayoutEntry {
entries: &[wgpu::BindGroupLayoutEntry {
binding: 0,
visibility: wgpu::ShaderStage::VERTEX | wgpu::ShaderStage::FRAGMENT,
ty: wgpu::BindingType::UniformBuffer { dynamic: false },
ty: wgpu::BindingType::UniformBuffer {
dynamic: false,
min_binding_size: None,
},
count: None,
}],
label: None,
});