Skip to content

Commit 1dda577

Browse files
committed
more fixes
1 parent 6ec5346 commit 1dda577

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/pages/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ function CodeSnippetsSection() {
470470
{' '}<P>v</P> =&gt; <P>v</P> / <F>length</F>(<P>v</P>){'\n'}
471471
{'\n'}
472472
<K>val</K> <P>dot</P> = <T>GFunction</T>[<T>Vec4</T>[<T>Float32</T>], <T>Float32</T>]:{'\n'}
473-
{' '}<P>v</P> =&gt; <P>v</P>.<F>dot</F>(<F>vec4</F>(<N>1f</N>, <N>0f</N>, <N>0f</N>, <N>0f</N>))
473+
{' '}<P>v</P> =&gt; <P>v</P> <F>dot</F> (<N>1f</N>, <N>0f</N>, <N>0f</N>, <N>0f</N>)
474474
</pre>
475475
<div style={styles.snippetDesc}>
476476
Built-in vector types map to GPU hardware.
@@ -508,7 +508,7 @@ function CodeSnippetsSection() {
508508
<K>val</K> <P>step</P> = <T>GFunction</T>.<F>forEachIndex</F>[<T>Physics</T>, <T>Vec4</T>, <T>Vec4</T>]:{'\n'}
509509
{' '}(<P>cfg</P>, <P>i</P>, <P>buf</P>) =&gt;{'\n'}
510510
{' '}<K>val</K> <P>p</P> = <P>buf</P>.<F>read</F>(<P>i</P>){'\n'}
511-
{' '}<F>vec4</F>(<P>p</P>.<P>x</P>, <P>p</P>.<P>y</P> + <P>cfg</P>.<P>gravity</P> * <P>cfg</P>.<P>dt</P>, <P>p</P>.<P>z</P>, <P>p</P>.<P>w</P>)
511+
{' '}(<P>p</P>.<P>x</P>, <P>p</P>.<P>y</P> + <P>cfg</P>.<P>gravity</P> * <P>cfg</P>.<P>dt</P>, <P>p</P>.<P>z</P>, <P>p</P>.<P>w</P>)
512512
</pre>
513513
<div style={styles.snippetDesc}>
514514
Case classes become GPU structs.

0 commit comments

Comments
 (0)