Skip to content

Commit 7ee85d9

Browse files
committed
Rewording
1 parent d9601fd commit 7ee85d9

File tree

1 file changed

+3
-3
lines changed
  • apps/typegpu-docs/src/content/docs/fundamentals/functions

1 file changed

+3
-3
lines changed

apps/typegpu-docs/src/content/docs/fundamentals/functions/index.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ We assume that you are familiar with the following concepts:
99
- <a href="https://webgpufundamentals.org/webgpu/lessons/webgpu-wgsl.html" target="_blank" rel="noopener noreferrer">WebGPU Shading Language</a>
1010
:::
1111

12-
WGSL (WebGPU Shading Language) lacks many quality-of-life features that help when building complex shaders, like the ability to split them into
13-
multiple files or import a shader utility function from a library. TypeGPU offers a more composable and familiar approach:
12+
WGSL (WebGPU Shading Language) lacks many quality-of-life features that help with building complex shaders, like the ability to split functionality across
13+
different files, or to import a shader utility function from a library. TypeGPU offers a more composable and familiar approach:
1414
- Each definition in WGSL is represented as its own TypeGPU resource (e.g., `tgpu.fn`).
1515
- They can be imported and exported like any other JavaScript value.
1616
- They can reference outside resources, like other user-defined or helper functions, buffers, bind group layouts, etc.
1717

1818
## Defining a function
1919

20-
Functions are constructed by first defining their shells (inputs and output).
20+
Functions are constructed by first defining their shells (input and output types).
2121
Then the actual WGSL implementation is passed in as an argument to a shell invocation.
2222

2323
The following code defines a function that accepts one argument and returns one value.

0 commit comments

Comments
 (0)