├── .changeset ├── README.md └── config.json ├── .editorconfig ├── .eslintignore ├── .eslintrc.js ├── .github ├── ----please-use-antv-issue-helper---.md ├── ISSUE_TEMPLATE.md ├── PULL_REQUEST_TEMPLATE.md └── workflows │ ├── build.yml │ ├── codeql.yml │ ├── deploy.yml │ ├── e2e.yml │ ├── issue-translation.yml │ ├── release.yml │ └── version.yml ├── .gitignore ├── .husky ├── commit-msg └── pre-commit ├── .markdownlint.json ├── .markdownlintignore ├── .prettierignore ├── .prettierrc ├── .vscode └── settings.json ├── CHANGELOG.md ├── CONTRIBUTING.md ├── README.md ├── __tests__ ├── integration │ ├── primitive-topology-lines.spec.ts │ ├── primitive-topology-points.spec.ts │ ├── primitive-topology-triangles.spec.ts │ ├── rotating-cube.spec.ts │ ├── snapshots │ │ ├── primitive-topology-lines.png │ │ ├── primitive-topology-points.png │ │ ├── primitive-topology-triangles.png │ │ ├── rotating-cube.png │ │ ├── stencil-intersection.png │ │ ├── stencil-mask.png │ │ ├── stencil-union.png │ │ ├── stencil.png │ │ └── textured-cube.png │ ├── stencil-intersection.spec.ts │ ├── stencil-mask.spec.ts │ ├── stencil-union.spec.ts │ ├── stencil.spec.ts │ ├── texture.png │ └── textured-cube.spec.ts ├── sleep.ts ├── toMatchWebGLSnapshot.ts ├── unit │ ├── bindings.spec.ts │ ├── buffer.spec.ts │ ├── compiler.spec.ts │ ├── compute-pass.spec.ts │ ├── compute-pipeline.spec.ts │ ├── program.spec.ts │ ├── query-pool.spec.ts │ ├── readback.spec.ts │ ├── render-pass.spec.ts │ ├── render-pipeline.spec.ts │ ├── render-target.spec.ts │ ├── sampler.spec.ts │ └── utils │ │ ├── assert.spec.ts │ │ ├── color.spec.ts │ │ ├── depth.spec.ts │ │ └── hash.spec.ts ├── useSnapshotMatchers.ts └── utils.ts ├── commitlint.config.js ├── examples ├── demos │ ├── 3d-atomic-rasterizer.ts │ ├── add-2-vectors.ts │ ├── ar-three.ts │ ├── ar.ts │ ├── black-hole-2.ts │ ├── black-hole.ts │ ├── blit.ts │ ├── blur.ts │ ├── canvas-gradient.ts │ ├── caustics.ts │ ├── compute-boids.ts │ ├── cubemap.ts │ ├── draw-indexed-indirect.ts │ ├── draw-indexed.ts │ ├── draw-indirect.ts │ ├── float-texture.ts │ ├── index.ts │ ├── instanced-cubes.ts │ ├── msaa.ts │ ├── multi-textured-cube.ts │ ├── multiple-render-passes.ts │ ├── multiple-render-targets.ts │ ├── nested-render-pass.ts │ ├── origami.ts │ ├── page-rank.ts │ ├── picking.ts │ ├── polygon-offset.ts │ ├── primitive-topology-lines.ts │ ├── primitive-topology-points.ts │ ├── primitive-topology-triangles.ts │ ├── raymarching.ts │ ├── read-buffer.ts │ ├── read-pixel.ts │ ├── render-bundle.ts │ ├── render-to-texture.ts │ ├── resize-canvas.ts │ ├── rotating-cube.ts │ ├── sampler.ts │ ├── scissor.ts │ ├── sdf-2d.ts │ ├── set-image-data.ts │ ├── simple-storage.ts │ ├── simplex-noise.ts │ ├── stardust.ts │ ├── stencil-intersection.ts │ ├── stencil-mask.ts │ ├── stencil-union.ts │ ├── stencil.ts │ ├── surface.ts │ ├── test-wgsl.ts │ ├── textured-cube.ts │ └── two-cubes.ts ├── index.html ├── main.ts ├── meshes │ └── cube.ts ├── public │ ├── glsl_wgsl_compiler_bg.wasm │ └── images │ │ ├── negx.jpg │ │ ├── negy.jpg │ │ ├── negz.jpg │ │ ├── posx.jpg │ │ ├── posy.jpg │ │ └── posz.jpg ├── utils.ts └── utils │ ├── compute-toys.ts │ ├── gradient.ts │ ├── graph.ts │ └── image.ts ├── jest.config.js ├── package.json ├── playwright.config.ts ├── pnpm-lock.yaml ├── rollup.config.mjs ├── rust ├── Cargo.lock ├── Cargo.toml ├── pkg │ ├── .gitignore │ ├── glsl_wgsl_compiler.d.ts │ ├── glsl_wgsl_compiler.js │ ├── glsl_wgsl_compiler_bg.wasm │ ├── glsl_wgsl_compiler_bg.wasm.d.ts │ └── package.json └── src │ └── lib.rs ├── src ├── api │ ├── constants.ts │ ├── format.ts │ ├── index.ts │ ├── interfaces.ts │ └── utils │ │ ├── assert.ts │ │ ├── color.ts │ │ ├── depth.ts │ │ ├── hash.ts │ │ ├── index.ts │ │ ├── states.ts │ │ ├── typedarray.ts │ │ └── uniform.ts ├── index.ts ├── shader │ ├── compiler.ts │ └── index.ts ├── webgl │ ├── Bindings.ts │ ├── Buffer.ts │ ├── ComputePass.ts │ ├── ComputePipeline.ts │ ├── Device.ts │ ├── InputLayout.ts │ ├── Program.ts │ ├── QueryPool.ts │ ├── Readback.ts │ ├── RenderBundle.ts │ ├── RenderPipeline.ts │ ├── RenderTarget.ts │ ├── ResourceBase.ts │ ├── ResourceCreationTracker.ts │ ├── Sampler.ts │ ├── Texture.ts │ ├── WebGLDeviceContribution.ts │ ├── interfaces.ts │ └── utils.ts └── webgpu │ ├── Bindings.ts │ ├── Buffer.ts │ ├── ComputePass.ts │ ├── ComputePipeline.ts │ ├── Device.ts │ ├── InputLayout.ts │ ├── MipmapGenerator.ts │ ├── Program.ts │ ├── QueryPool.ts │ ├── Readback.ts │ ├── RenderBundle.ts │ ├── RenderPass.ts │ ├── RenderPipeline.ts │ ├── ResourceBase.ts │ ├── Sampler.ts │ ├── Texture.ts │ ├── WebGPUDeviceContribution.ts │ ├── constants.ts │ ├── interfaces.ts │ └── utils.ts ├── tests ├── __screenshots__ │ └── example1.test.ts │ │ ├── PrimitiveTopologyPoints.png │ │ └── PrimitiveTopologyTriangles.png └── example1.test.ts ├── tsconfig.json └── vite.config.js /.changeset/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/.changeset/README.md -------------------------------------------------------------------------------- /.changeset/config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/.changeset/config.json -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/.eslintignore -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.github/----please-use-antv-issue-helper---.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/.github/----please-use-antv-issue-helper---.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/.github/ISSUE_TEMPLATE.md -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/.github/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /.github/workflows/build.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/.github/workflows/build.yml -------------------------------------------------------------------------------- /.github/workflows/codeql.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/.github/workflows/codeql.yml -------------------------------------------------------------------------------- /.github/workflows/deploy.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/.github/workflows/deploy.yml -------------------------------------------------------------------------------- /.github/workflows/e2e.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/.github/workflows/e2e.yml -------------------------------------------------------------------------------- /.github/workflows/issue-translation.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/.github/workflows/issue-translation.yml -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.github/workflows/version.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/.github/workflows/version.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/commit-msg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/.husky/commit-msg -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | . "$(dirname "$0")/_/husky.sh" 3 | 4 | npx lint-staged 5 | -------------------------------------------------------------------------------- /.markdownlint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/.markdownlint.json -------------------------------------------------------------------------------- /.markdownlintignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | **/CHANGELOG.md -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | es 2 | lib 3 | dist 4 | tsconfig.json 5 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/.prettierrc -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/README.md -------------------------------------------------------------------------------- /__tests__/integration/primitive-topology-lines.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/__tests__/integration/primitive-topology-lines.spec.ts -------------------------------------------------------------------------------- /__tests__/integration/primitive-topology-points.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/__tests__/integration/primitive-topology-points.spec.ts -------------------------------------------------------------------------------- /__tests__/integration/primitive-topology-triangles.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/__tests__/integration/primitive-topology-triangles.spec.ts -------------------------------------------------------------------------------- /__tests__/integration/rotating-cube.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/__tests__/integration/rotating-cube.spec.ts -------------------------------------------------------------------------------- /__tests__/integration/snapshots/primitive-topology-lines.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/__tests__/integration/snapshots/primitive-topology-lines.png -------------------------------------------------------------------------------- /__tests__/integration/snapshots/primitive-topology-points.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/__tests__/integration/snapshots/primitive-topology-points.png -------------------------------------------------------------------------------- /__tests__/integration/snapshots/primitive-topology-triangles.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/__tests__/integration/snapshots/primitive-topology-triangles.png -------------------------------------------------------------------------------- /__tests__/integration/snapshots/rotating-cube.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/__tests__/integration/snapshots/rotating-cube.png -------------------------------------------------------------------------------- /__tests__/integration/snapshots/stencil-intersection.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/__tests__/integration/snapshots/stencil-intersection.png -------------------------------------------------------------------------------- /__tests__/integration/snapshots/stencil-mask.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/__tests__/integration/snapshots/stencil-mask.png -------------------------------------------------------------------------------- /__tests__/integration/snapshots/stencil-union.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/__tests__/integration/snapshots/stencil-union.png -------------------------------------------------------------------------------- /__tests__/integration/snapshots/stencil.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/__tests__/integration/snapshots/stencil.png -------------------------------------------------------------------------------- /__tests__/integration/snapshots/textured-cube.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/__tests__/integration/snapshots/textured-cube.png -------------------------------------------------------------------------------- /__tests__/integration/stencil-intersection.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/__tests__/integration/stencil-intersection.spec.ts -------------------------------------------------------------------------------- /__tests__/integration/stencil-mask.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/__tests__/integration/stencil-mask.spec.ts -------------------------------------------------------------------------------- /__tests__/integration/stencil-union.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/__tests__/integration/stencil-union.spec.ts -------------------------------------------------------------------------------- /__tests__/integration/stencil.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/__tests__/integration/stencil.spec.ts -------------------------------------------------------------------------------- /__tests__/integration/texture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/__tests__/integration/texture.png -------------------------------------------------------------------------------- /__tests__/integration/textured-cube.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/__tests__/integration/textured-cube.spec.ts -------------------------------------------------------------------------------- /__tests__/sleep.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/__tests__/sleep.ts -------------------------------------------------------------------------------- /__tests__/toMatchWebGLSnapshot.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/__tests__/toMatchWebGLSnapshot.ts -------------------------------------------------------------------------------- /__tests__/unit/bindings.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/__tests__/unit/bindings.spec.ts -------------------------------------------------------------------------------- /__tests__/unit/buffer.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/__tests__/unit/buffer.spec.ts -------------------------------------------------------------------------------- /__tests__/unit/compiler.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/__tests__/unit/compiler.spec.ts -------------------------------------------------------------------------------- /__tests__/unit/compute-pass.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/__tests__/unit/compute-pass.spec.ts -------------------------------------------------------------------------------- /__tests__/unit/compute-pipeline.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/__tests__/unit/compute-pipeline.spec.ts -------------------------------------------------------------------------------- /__tests__/unit/program.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/__tests__/unit/program.spec.ts -------------------------------------------------------------------------------- /__tests__/unit/query-pool.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/__tests__/unit/query-pool.spec.ts -------------------------------------------------------------------------------- /__tests__/unit/readback.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/__tests__/unit/readback.spec.ts -------------------------------------------------------------------------------- /__tests__/unit/render-pass.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/__tests__/unit/render-pass.spec.ts -------------------------------------------------------------------------------- /__tests__/unit/render-pipeline.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/__tests__/unit/render-pipeline.spec.ts -------------------------------------------------------------------------------- /__tests__/unit/render-target.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/__tests__/unit/render-target.spec.ts -------------------------------------------------------------------------------- /__tests__/unit/sampler.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/__tests__/unit/sampler.spec.ts -------------------------------------------------------------------------------- /__tests__/unit/utils/assert.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/__tests__/unit/utils/assert.spec.ts -------------------------------------------------------------------------------- /__tests__/unit/utils/color.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/__tests__/unit/utils/color.spec.ts -------------------------------------------------------------------------------- /__tests__/unit/utils/depth.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/__tests__/unit/utils/depth.spec.ts -------------------------------------------------------------------------------- /__tests__/unit/utils/hash.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/__tests__/unit/utils/hash.spec.ts -------------------------------------------------------------------------------- /__tests__/useSnapshotMatchers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/__tests__/useSnapshotMatchers.ts -------------------------------------------------------------------------------- /__tests__/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/__tests__/utils.ts -------------------------------------------------------------------------------- /commitlint.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/commitlint.config.js -------------------------------------------------------------------------------- /examples/demos/3d-atomic-rasterizer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/3d-atomic-rasterizer.ts -------------------------------------------------------------------------------- /examples/demos/add-2-vectors.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/add-2-vectors.ts -------------------------------------------------------------------------------- /examples/demos/ar-three.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/ar-three.ts -------------------------------------------------------------------------------- /examples/demos/ar.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/ar.ts -------------------------------------------------------------------------------- /examples/demos/black-hole-2.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/black-hole-2.ts -------------------------------------------------------------------------------- /examples/demos/black-hole.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/black-hole.ts -------------------------------------------------------------------------------- /examples/demos/blit.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/blit.ts -------------------------------------------------------------------------------- /examples/demos/blur.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/blur.ts -------------------------------------------------------------------------------- /examples/demos/canvas-gradient.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/canvas-gradient.ts -------------------------------------------------------------------------------- /examples/demos/caustics.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/caustics.ts -------------------------------------------------------------------------------- /examples/demos/compute-boids.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/compute-boids.ts -------------------------------------------------------------------------------- /examples/demos/cubemap.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/cubemap.ts -------------------------------------------------------------------------------- /examples/demos/draw-indexed-indirect.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/draw-indexed-indirect.ts -------------------------------------------------------------------------------- /examples/demos/draw-indexed.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/draw-indexed.ts -------------------------------------------------------------------------------- /examples/demos/draw-indirect.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/draw-indirect.ts -------------------------------------------------------------------------------- /examples/demos/float-texture.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/float-texture.ts -------------------------------------------------------------------------------- /examples/demos/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/index.ts -------------------------------------------------------------------------------- /examples/demos/instanced-cubes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/instanced-cubes.ts -------------------------------------------------------------------------------- /examples/demos/msaa.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/msaa.ts -------------------------------------------------------------------------------- /examples/demos/multi-textured-cube.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/multi-textured-cube.ts -------------------------------------------------------------------------------- /examples/demos/multiple-render-passes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/multiple-render-passes.ts -------------------------------------------------------------------------------- /examples/demos/multiple-render-targets.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/multiple-render-targets.ts -------------------------------------------------------------------------------- /examples/demos/nested-render-pass.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/nested-render-pass.ts -------------------------------------------------------------------------------- /examples/demos/origami.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/origami.ts -------------------------------------------------------------------------------- /examples/demos/page-rank.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/page-rank.ts -------------------------------------------------------------------------------- /examples/demos/picking.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/picking.ts -------------------------------------------------------------------------------- /examples/demos/polygon-offset.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/polygon-offset.ts -------------------------------------------------------------------------------- /examples/demos/primitive-topology-lines.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/primitive-topology-lines.ts -------------------------------------------------------------------------------- /examples/demos/primitive-topology-points.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/primitive-topology-points.ts -------------------------------------------------------------------------------- /examples/demos/primitive-topology-triangles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/primitive-topology-triangles.ts -------------------------------------------------------------------------------- /examples/demos/raymarching.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/raymarching.ts -------------------------------------------------------------------------------- /examples/demos/read-buffer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/read-buffer.ts -------------------------------------------------------------------------------- /examples/demos/read-pixel.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/read-pixel.ts -------------------------------------------------------------------------------- /examples/demos/render-bundle.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/render-bundle.ts -------------------------------------------------------------------------------- /examples/demos/render-to-texture.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/render-to-texture.ts -------------------------------------------------------------------------------- /examples/demos/resize-canvas.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/resize-canvas.ts -------------------------------------------------------------------------------- /examples/demos/rotating-cube.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/rotating-cube.ts -------------------------------------------------------------------------------- /examples/demos/sampler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/sampler.ts -------------------------------------------------------------------------------- /examples/demos/scissor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/scissor.ts -------------------------------------------------------------------------------- /examples/demos/sdf-2d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/sdf-2d.ts -------------------------------------------------------------------------------- /examples/demos/set-image-data.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/set-image-data.ts -------------------------------------------------------------------------------- /examples/demos/simple-storage.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/simple-storage.ts -------------------------------------------------------------------------------- /examples/demos/simplex-noise.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/simplex-noise.ts -------------------------------------------------------------------------------- /examples/demos/stardust.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/stardust.ts -------------------------------------------------------------------------------- /examples/demos/stencil-intersection.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/stencil-intersection.ts -------------------------------------------------------------------------------- /examples/demos/stencil-mask.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/stencil-mask.ts -------------------------------------------------------------------------------- /examples/demos/stencil-union.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/stencil-union.ts -------------------------------------------------------------------------------- /examples/demos/stencil.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/stencil.ts -------------------------------------------------------------------------------- /examples/demos/surface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/surface.ts -------------------------------------------------------------------------------- /examples/demos/test-wgsl.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/test-wgsl.ts -------------------------------------------------------------------------------- /examples/demos/textured-cube.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/textured-cube.ts -------------------------------------------------------------------------------- /examples/demos/two-cubes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/demos/two-cubes.ts -------------------------------------------------------------------------------- /examples/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/index.html -------------------------------------------------------------------------------- /examples/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/main.ts -------------------------------------------------------------------------------- /examples/meshes/cube.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/meshes/cube.ts -------------------------------------------------------------------------------- /examples/public/glsl_wgsl_compiler_bg.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/public/glsl_wgsl_compiler_bg.wasm -------------------------------------------------------------------------------- /examples/public/images/negx.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/public/images/negx.jpg -------------------------------------------------------------------------------- /examples/public/images/negy.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/public/images/negy.jpg -------------------------------------------------------------------------------- /examples/public/images/negz.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/public/images/negz.jpg -------------------------------------------------------------------------------- /examples/public/images/posx.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/public/images/posx.jpg -------------------------------------------------------------------------------- /examples/public/images/posy.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/public/images/posy.jpg -------------------------------------------------------------------------------- /examples/public/images/posz.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/public/images/posz.jpg -------------------------------------------------------------------------------- /examples/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/utils.ts -------------------------------------------------------------------------------- /examples/utils/compute-toys.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/utils/compute-toys.ts -------------------------------------------------------------------------------- /examples/utils/gradient.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/utils/gradient.ts -------------------------------------------------------------------------------- /examples/utils/graph.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/utils/graph.ts -------------------------------------------------------------------------------- /examples/utils/image.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/examples/utils/image.ts -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/package.json -------------------------------------------------------------------------------- /playwright.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/playwright.config.ts -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /rollup.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/rollup.config.mjs -------------------------------------------------------------------------------- /rust/Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/rust/Cargo.lock -------------------------------------------------------------------------------- /rust/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/rust/Cargo.toml -------------------------------------------------------------------------------- /rust/pkg/.gitignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /rust/pkg/glsl_wgsl_compiler.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/rust/pkg/glsl_wgsl_compiler.d.ts -------------------------------------------------------------------------------- /rust/pkg/glsl_wgsl_compiler.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/rust/pkg/glsl_wgsl_compiler.js -------------------------------------------------------------------------------- /rust/pkg/glsl_wgsl_compiler_bg.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/rust/pkg/glsl_wgsl_compiler_bg.wasm -------------------------------------------------------------------------------- /rust/pkg/glsl_wgsl_compiler_bg.wasm.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/rust/pkg/glsl_wgsl_compiler_bg.wasm.d.ts -------------------------------------------------------------------------------- /rust/pkg/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/rust/pkg/package.json -------------------------------------------------------------------------------- /rust/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/rust/src/lib.rs -------------------------------------------------------------------------------- /src/api/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/api/constants.ts -------------------------------------------------------------------------------- /src/api/format.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/api/format.ts -------------------------------------------------------------------------------- /src/api/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/api/index.ts -------------------------------------------------------------------------------- /src/api/interfaces.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/api/interfaces.ts -------------------------------------------------------------------------------- /src/api/utils/assert.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/api/utils/assert.ts -------------------------------------------------------------------------------- /src/api/utils/color.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/api/utils/color.ts -------------------------------------------------------------------------------- /src/api/utils/depth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/api/utils/depth.ts -------------------------------------------------------------------------------- /src/api/utils/hash.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/api/utils/hash.ts -------------------------------------------------------------------------------- /src/api/utils/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/api/utils/index.ts -------------------------------------------------------------------------------- /src/api/utils/states.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/api/utils/states.ts -------------------------------------------------------------------------------- /src/api/utils/typedarray.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/api/utils/typedarray.ts -------------------------------------------------------------------------------- /src/api/utils/uniform.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/api/utils/uniform.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/shader/compiler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/shader/compiler.ts -------------------------------------------------------------------------------- /src/shader/index.ts: -------------------------------------------------------------------------------- 1 | export * from './compiler'; 2 | -------------------------------------------------------------------------------- /src/webgl/Bindings.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/webgl/Bindings.ts -------------------------------------------------------------------------------- /src/webgl/Buffer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/webgl/Buffer.ts -------------------------------------------------------------------------------- /src/webgl/ComputePass.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/webgl/ComputePass.ts -------------------------------------------------------------------------------- /src/webgl/ComputePipeline.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/webgl/ComputePipeline.ts -------------------------------------------------------------------------------- /src/webgl/Device.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/webgl/Device.ts -------------------------------------------------------------------------------- /src/webgl/InputLayout.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/webgl/InputLayout.ts -------------------------------------------------------------------------------- /src/webgl/Program.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/webgl/Program.ts -------------------------------------------------------------------------------- /src/webgl/QueryPool.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/webgl/QueryPool.ts -------------------------------------------------------------------------------- /src/webgl/Readback.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/webgl/Readback.ts -------------------------------------------------------------------------------- /src/webgl/RenderBundle.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/webgl/RenderBundle.ts -------------------------------------------------------------------------------- /src/webgl/RenderPipeline.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/webgl/RenderPipeline.ts -------------------------------------------------------------------------------- /src/webgl/RenderTarget.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/webgl/RenderTarget.ts -------------------------------------------------------------------------------- /src/webgl/ResourceBase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/webgl/ResourceBase.ts -------------------------------------------------------------------------------- /src/webgl/ResourceCreationTracker.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/webgl/ResourceCreationTracker.ts -------------------------------------------------------------------------------- /src/webgl/Sampler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/webgl/Sampler.ts -------------------------------------------------------------------------------- /src/webgl/Texture.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/webgl/Texture.ts -------------------------------------------------------------------------------- /src/webgl/WebGLDeviceContribution.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/webgl/WebGLDeviceContribution.ts -------------------------------------------------------------------------------- /src/webgl/interfaces.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/webgl/interfaces.ts -------------------------------------------------------------------------------- /src/webgl/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/webgl/utils.ts -------------------------------------------------------------------------------- /src/webgpu/Bindings.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/webgpu/Bindings.ts -------------------------------------------------------------------------------- /src/webgpu/Buffer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/webgpu/Buffer.ts -------------------------------------------------------------------------------- /src/webgpu/ComputePass.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/webgpu/ComputePass.ts -------------------------------------------------------------------------------- /src/webgpu/ComputePipeline.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/webgpu/ComputePipeline.ts -------------------------------------------------------------------------------- /src/webgpu/Device.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/webgpu/Device.ts -------------------------------------------------------------------------------- /src/webgpu/InputLayout.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/webgpu/InputLayout.ts -------------------------------------------------------------------------------- /src/webgpu/MipmapGenerator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/webgpu/MipmapGenerator.ts -------------------------------------------------------------------------------- /src/webgpu/Program.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/webgpu/Program.ts -------------------------------------------------------------------------------- /src/webgpu/QueryPool.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/webgpu/QueryPool.ts -------------------------------------------------------------------------------- /src/webgpu/Readback.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/webgpu/Readback.ts -------------------------------------------------------------------------------- /src/webgpu/RenderBundle.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/webgpu/RenderBundle.ts -------------------------------------------------------------------------------- /src/webgpu/RenderPass.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/webgpu/RenderPass.ts -------------------------------------------------------------------------------- /src/webgpu/RenderPipeline.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/webgpu/RenderPipeline.ts -------------------------------------------------------------------------------- /src/webgpu/ResourceBase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/webgpu/ResourceBase.ts -------------------------------------------------------------------------------- /src/webgpu/Sampler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/webgpu/Sampler.ts -------------------------------------------------------------------------------- /src/webgpu/Texture.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/webgpu/Texture.ts -------------------------------------------------------------------------------- /src/webgpu/WebGPUDeviceContribution.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/webgpu/WebGPUDeviceContribution.ts -------------------------------------------------------------------------------- /src/webgpu/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/webgpu/constants.ts -------------------------------------------------------------------------------- /src/webgpu/interfaces.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/webgpu/interfaces.ts -------------------------------------------------------------------------------- /src/webgpu/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/src/webgpu/utils.ts -------------------------------------------------------------------------------- /tests/__screenshots__/example1.test.ts/PrimitiveTopologyPoints.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/tests/__screenshots__/example1.test.ts/PrimitiveTopologyPoints.png -------------------------------------------------------------------------------- /tests/__screenshots__/example1.test.ts/PrimitiveTopologyTriangles.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/tests/__screenshots__/example1.test.ts/PrimitiveTopologyTriangles.png -------------------------------------------------------------------------------- /tests/example1.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/tests/example1.test.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/tsconfig.json -------------------------------------------------------------------------------- /vite.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antvis/g-device-api/HEAD/vite.config.js --------------------------------------------------------------------------------