You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/typegpu-docs/src/content/docs/advanced/shader-generation.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -197,10 +197,10 @@ There are essentially three types of origins:
197
197
performing operations that produce new values. Examples include creating a new `Boid` instance or calculating a new position based on an existing one. These
198
198
include `'runtime'` and `'constant'`.
199
199
- **Referential Origins**: These origins represent references to existing values. They are typically used for accessing or modifying existing data. Examples
200
-
include accessing the position of an existing `Boid` instance or modifying the position of an existing `Boid` instance. These include `'uniform'`, `'mutable'`, `'readonly'`, `'workgroup'`, `'private'`, `'function'`, `'handle'`, `'constant-ref'` and `'this-function'`.
200
+
include accessing the position of an existing `Boid` instance or modifying the position of an existing `Boid` instance:
201
201
- `'uniform'`, `'mutable'`, `'readonly'`, `'workgroup'`, `'private'`, `'function'`, `'handle'` all reflect address spaces that values can belong to, and
202
202
we use them to determine what kind of pointer type they are.
203
203
- `'constant-tgpu-const-ref'` is a reference to a value stored in a `tgpu.const`. They're different from `constant`s, as we know that even if they're referential (non-primitive), the developer cannot mutate them.
204
204
- `'runtime-tgpu-const-ref'` is a reference to a value stored in a `tgpu.const` but accessed in a way that isn’t constant at shader‑creation time (for example, indexed using a runtime value).
205
-
- `'this-function'` lets us track whether values originates from the function we're currently generating, or the function that called us.
205
+
- `'local'` lets us track whether values originate from the function we're currently generating.
206
206
- **Argument Origins**: This group is dedicated to exactly one origin: 'argument'. It represents values that are passed as arguments to functions.
0 commit comments