This commit is contained in:
Connor Fitzgerald authored and GitHub committed 2026-10-05 16:49:16 +00:00
1 parent 7b38991c62
commit 475507a24f
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -146,7 +146,7 @@ impl TrackerIndex {
/// wgpu-core internally use some array-like storage for tracking resources.
/// To that end, there needs to be a uniquely assigned index for each live resource
/// of a certain type. This index is separate from the resource ID for various reasons:
/// - There can be multiple resource IDs pointing the the same resource.
/// - There can be multiple resource IDs pointing to the same resource.
/// - IDs of dead handles can be recycled while resources are internally held alive (and tracked).
/// - The plan is to remove IDs in the long run
/// ([#5121](https://github.com/gfx-rs/wgpu/issues/5121)).
+1 -1
View File
@@ -46,7 +46,7 @@ pub struct WriteOnly<'a, T: ?Sized> {
/// The data which this write-only reference allows **writing** to.
///
/// This field is not `&mut T`, because if it were, it would assert to the compiler
/// that spurious reads may be inserted, and is is unclear whether those spurious reads
/// that spurious reads may be inserted, and it is unclear whether those spurious reads
/// are acceptable.
ptr: NonNull<T>,