Skip to content

Commit d4edcf7

Browse files
authored
docs: Fixes to the TypeGPU 0.11 Blog Post (#2397)
1 parent 34d1537 commit d4edcf7

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

  • apps/typegpu-docs/src/content/docs/blog/typegpu-0.11

apps/typegpu-docs/src/content/docs/blog/typegpu-0.11/index.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ common.writeSoA(particleBuffer, {
159159

160160
## Shader code ergonomics
161161

162-
There's been a lot of improvements to our shader generation, mainly in regards to compile-time execution and pruning of unreachable branches.
162+
There have been a lot of improvements to our shader generation, mainly regarding comptime execution and pruning of unreachable branches.
163163
I will highlight some of them in the following sections.
164164

165165
### std.range
@@ -190,9 +190,9 @@ var result = 0u;
190190
{
191191
result += 20u;
192192
}
193-
````
193+
```
194194

195-
Because `i` is known at compile-time, the `i * 10` is evaluated and injected into the generated code in each block.
195+
Because `i` is known at comptime, the `i * 10` is evaluated and injected into the generated code in each block.
196196
For more, refer to [tgpu.unroll documentation.](/TypeGPU/fundamentals/utils/#tgpuunroll).
197197

198198
### Boolean logic
@@ -291,7 +291,7 @@ function clampTo0(n: number) {
291291

292292
### New @typegpu/color helpers
293293

294-
There are three new helper functions importable from `@typegpu/color` which can be called at compile-time to create
294+
There are three new helper functions importable from `@typegpu/color` which can be called at comptime to create
295295
color vectors from hexadecimal strings: `hexToRgb`, `hexToRgba` and `hexToOklab`.
296296

297297
```ts
@@ -312,7 +312,7 @@ fn getGradientColor(t: f32) -> vec3f {
312312
var to = vec3f(0, 1, 0);
313313
return mix(from, to, t);
314314
}
315-
````
315+
```
316316

317317
### Bundler plugin rewrite
318318

0 commit comments

Comments
 (0)