- Queue
- Where command buffers are submitted; it keeps their order of submission and does not wait for one to finish before the next starts.
- Command buffer
- A batch of GPU commands recorded on the CPU and submitted in one piece.
- Submission
- One call to
Queue::submit, with wgpu-core's pending writes ahead of its command buffers.
- Pass
- A run of commands of one kind, recorded through one encoder.
- Pending writes
- wgpu-core's own command buffer of copies, sent ahead of yours in the next submission.
- Poll
Device::poll; with a wait, it blocks the CPU until the most recent submission has finished.
- Hazard
- Two accesses to the same memory, at least one a write, with nothing to order them.
- Read after write
- The hazard in which a read must wait for an earlier write to finish.
- Barrier
- A recorded command that makes later GPU work wait for earlier work's writes.
- Hazard tracking
- Metal's automatic ordering, for tracked resources that work binds directly.
- Tracked resource
- A Metal resource whose hazards Metal tracks; device-made resources are tracked by default.
- Fence
MTLFence: one pass updates it after its stores, a later pass waits for it.
- Event
MTLEvent: a counter one command buffer signals and another waits for; a shared event also reaches the CPU.
- Residency set
- Metal's list of resources a command buffer may touch; it tracks no hazards.
- Resource ID
- A number naming a Metal resource from inside a buffer, out of tracking's sight.
- Indirect instance descriptor
- Metal's TLAS entry layout that names its BLAS by resource ID; wgpu-hal uses it for every TLAS.
- wgpu-core
- wgpu's layer that validates calls, tracks resources and asks for barriers, for every backend alike.
- wgpu-hal
- wgpu's layer that turns wgpu-core's requests into one backend's commands.
- BLAS
- Bottom-level acceleration structure: the GPU's search structure over one Mesh's triangles.
- TLAS
- Top-level acceleration structure: the GPU's search structure over Instances, each placing a BLAS with its transform.
- Static TLAS
- The TLAS of every static Instance whose Mesh rays trace, built at load and rebuilt only in a frame that changes one (#202).
- Dynamic TLAS
- The TLAS of at most 10,000 Moving Instances, rebuilt every frame (#204).
- Compaction
- Copying a built BLAS into a smaller one that replaces it; wgpu-core records the copy into its pending writes.
- Refit
- Recomputing an acceleration structure's bounds in place, keeping its tree; not in wgpu-core 30.
- Load staging
- Praxis's encoder of load-time copies and BLAS builds, submitted ahead of the next frame's work.
- Custom data
- A number a TLAS entry carries and a hit reports; Praxis stores the Instance's slot.
- Device
- A wgpu connection to one GPU, with its own queue.
- Flaky test
- A test that passes on some runs and fails on others, with the same code.
- Stress loop
- A test run many times at once to raise a race's rate until every run fails.
- Cut
- One step of the test changed or removed, to see whether the failures stop.
- Mesh
- An ordered list of Primitives that are rendered together.
- Instance
- One Renderable's data on the GPU, in a slot of the Instance buffer that the Renderable keeps while it is one.
- Golden
- A committed image that a Reference scene must reproduce within tolerance.
- Baseline
- The recorded measurements of a Reference scene on one adapter.