mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-20 22:41:07 +01:00
Tracker mod docs: fix explanation of index re-use.
This commit is contained in:
1 parent
1ee4bb502c
commit
636bef9cd5
1 file changed
+4
-2
@@ -16,8 +16,10 @@ is a corresponding debug assert the checks if that access is valid. This helps
|
||||
get bugs caught fast, while still letting users not need to pay for the bounds
|
||||
checks.
|
||||
|
||||
In wgpu, resource IDs are allocated and re-used, so will always be as low
|
||||
as reasonably possible. This allows us to use the ID as an index into an array.
|
||||
In wgpu, each resource ID includes a bitfield holding an index.
|
||||
Indices are allocated and re-used, so they will always be as low as
|
||||
reasonably possible. This allows us to use IDs to index into an array
|
||||
of tracking information.
|
||||
|
||||
## Statefulness
|
||||
|
||||
|
||||
Reference in new issue
Block a user