mirror of
https://github.com/sotrh/learn-wgpu.git
synced 2024-11-10 01:10:28 +00:00
Add missing fields in PrimitiveState
The render pipeline page was missing the `clamp_depth` and `conservative` fields of the `wgpu::PrimitiveState` struct, added with wgpu 0.8. These were correct in the full code, but not the snippets in the doc.
This commit is contained in:
parent
5f77f40ec1
commit
55c9a7f44c
@ -196,6 +196,10 @@ Two things to note here:
|
|||||||
cull_mode: Some(wgpu::Face::Back),
|
cull_mode: Some(wgpu::Face::Back),
|
||||||
// Setting this to anything other than Fill requires Features::NON_FILL_POLYGON_MODE
|
// Setting this to anything other than Fill requires Features::NON_FILL_POLYGON_MODE
|
||||||
polygon_mode: wgpu::PolygonMode::Fill,
|
polygon_mode: wgpu::PolygonMode::Fill,
|
||||||
|
// Requires Features::DEPTH_CLAMPING
|
||||||
|
clamp_depth: false,
|
||||||
|
// Requires Features::CONSERVATIVE_RASTERIZATION
|
||||||
|
conservative: false,
|
||||||
},
|
},
|
||||||
// continued ...
|
// continued ...
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user