Merge pull request #115 from pudnax/light_layout_typo

Light layout typo
pull/117/head
sotrh 4 years ago committed by GitHub
commit 06e7818e7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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,
});

Loading…
Cancel
Save