From 0e790d5c74df1f106be0d756e6839c86b6b373ad Mon Sep 17 00:00:00 2001 From: cpsdqs Date: Tue, 5 Mar 2024 23:48:37 +0100 Subject: [PATCH 1/2] docs: mention primitive restart in the description of strip_index_format --- wgpu-types/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wgpu-types/src/lib.rs b/wgpu-types/src/lib.rs index a68945452f..96b8667013 100644 --- a/wgpu-types/src/lib.rs +++ b/wgpu-types/src/lib.rs @@ -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, /// The face to consider the front for the purpose of culling and stencil operations. From 486d8b621b6d5afa4627773663834736adebdd36 Mon Sep 17 00:00:00 2001 From: cpsdqs Date: Wed, 6 Mar 2024 00:33:27 +0100 Subject: [PATCH 2/2] update changelog for #5350 --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e1c4be5f3..779d6bdb37 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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