File tree Expand file tree Collapse file tree
apps/typegpu-docs/src/content/docs/blog/typegpu-0.11 Expand file tree Collapse file tree Original file line number Diff line number Diff 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.
163163I 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.
196196For 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
295295color 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
You can’t perform that action at this time.
0 commit comments