File tree Expand file tree Collapse file tree
apps/typegpu-docs/src/examples/react/triangle Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff 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 });
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments