Skip to content

Commit 04d1fe1

Browse files
committed
Change 'kernel' to 'use gpu'
1 parent e98a57b commit 04d1fe1

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

apps/typegpu-docs/src/examples/react/triangle/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function App() {
1111

1212
const { ref } = useRender({
1313
fragment: () => {
14-
'kernel';
14+
'use gpu';
1515
const t = time.$;
1616
const rgb = hsvToRgb(d.vec3f(t * 0.5, 1, 1));
1717
return d.vec4f(rgb, 1);

packages/typegpu-react/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const App = (props: Props) => {
2424
const { ref } = useRender({
2525
// Runs each frame on the GPU 🌈
2626
fragment: ({ uv }) => {
27-
'kernel';
27+
'use gpu';
2828
return hsvToRgb(time.$, uv.x, uv.y) * color.$;
2929
},
3030
});

packages/typegpu-react/src/use-render.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export interface UseRenderOptions {
1212
vertex?: () => void;
1313

1414
/**
15-
* A kernel function that runs per-pixel on the GPU.
15+
* A TypeGPU function that runs per-pixel on the GPU.
1616
*/
1717
fragment: (input: InferRecord<typeof DefaultVarying>) => d.v4f;
1818
}

0 commit comments

Comments
 (0)