File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
apps/typegpu-docs/src/examples/simple/rotating-triangle-tiles Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 11import { colors } from './geometry.ts' ;
22import { createBezier } from './bezier.ts' ;
3- import { root } from './root.ts' ;
43import {
54 backgroundFragment ,
65 backgroundVertex ,
@@ -33,13 +32,16 @@ import {
3332 shiftedColorsAccess ,
3433 stepRotationAccess ,
3534} from './buffers.ts' ;
35+ import tgpu from 'typegpu' ;
3636
3737const presentationFormat = navigator . gpu . getPreferredCanvasFormat ( ) ;
3838const canvas = document . querySelector ( 'canvas' ) as HTMLCanvasElement ;
3939const context = canvas . getContext ( 'webgpu' ) as GPUCanvasContext ;
4040
4141let ease = createBezier ( getCubicBezierControlPoints ( ) ) ;
4242
43+ export const root = await tgpu . init ( ) ;
44+
4345const {
4446 aspectRatioBuffer,
4547 animationProgressUniform,
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments