mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-23 16:01:04 +01:00
typo fix (#10540)
This commit is contained in:
1 parent
7b38991c62
commit
475507a24f
2 files changed
+2
-2
No files matched your search
@@ -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)).
|
||||
|
||||
@@ -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>,
|
||||
|
||||
|
||||
Reference in new issue
Block a user