Skip to content

Commit

Permalink
docs: mention primitive restart in the description of strip_index_for…
Browse files Browse the repository at this point in the history
…mat (#5350)

* docs: mention primitive restart in the description of strip_index_format

* update changelog for #5350
  • Loading branch information
cpsdqs authored Mar 9, 2024
1 parent 2234fd6 commit 5e12273
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ By @cwfitzgerald in [#5325](https://github.com/gfx-rs/wgpu/pull/5325).
### Documentation

- Document Wayland specific behavior related to `SurfaceTexture::present`. By @i509VCB in [#5092](https://github.com/gfx-rs/wgpu/pull/5092).
- Add mention of primitive restart in the description of `PrimitiveState::strip_index_format`. By @cpsdqs in [#5350](https://github.com/gfx-rs/wgpu/pull/5350)

### New features

Expand Down
3 changes: 3 additions & 0 deletions wgpu-types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2129,6 +2129,9 @@ pub struct PrimitiveState {
pub topology: PrimitiveTopology,
/// When drawing strip topologies with indices, this is the required format for the index buffer.
/// This has no effect on non-indexed or non-strip draws.
///
/// Specifying this value enables primitive restart, allowing individual strips to be separated
/// with the index value `0xFFFF` when using `Uint16`, or `0xFFFFFFFF` when using `Uint32`.
#[cfg_attr(feature = "serde", serde(default))]
pub strip_index_format: Option<IndexFormat>,
/// The face to consider the front for the purpose of culling and stencil operations.
Expand Down

0 comments on commit 5e12273

Please sign in to comment.