-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
113 changed files
with
4,471 additions
and
1,081 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20 | ||
cache: yarn | ||
- run: yarn install | ||
- run: yarn test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ node_modules/ | |
/lib/js/src | ||
/lib/js/tests/testHelpers.js | ||
npm-debug.log | ||
.yarn/install-state.gz |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
nodeLinker: node-modules | ||
|
||
yarnPath: .yarn/releases/yarn-4.0.2.cjs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
'use strict'; | ||
|
||
|
||
var canvasEl = document.createElement("canvas"); | ||
|
||
var ctx = canvasEl.getContext("webgl"); | ||
|
||
ctx.clear(5); | ||
|
||
ctx.clearColor(0, 1, 2, 3); | ||
|
||
ctx.enable(5); | ||
|
||
ctx.disable(5); | ||
|
||
ctx.blendFunc(0, 1); | ||
|
||
ctx.cullFace(5); | ||
|
||
var buf = ctx.createBuffer(); | ||
|
||
ctx.deleteBuffer(buf); | ||
|
||
ctx.bindBuffer(5, buf); | ||
|
||
ctx.bufferData(5, new Uint16Array(5), 5); | ||
|
||
ctx.bufferData(5, new Float32Array(5), 5); | ||
|
||
var program = ctx.createProgram(); | ||
|
||
ctx.linkProgram(program); | ||
|
||
ctx.useProgram(program); | ||
|
||
var programlog = ctx.getProgramInfoLog(program); | ||
|
||
ctx.bindAttribLocation(program, 5, ""); | ||
|
||
var shader = ctx.createShader(5); | ||
|
||
ctx.shaderSource(shader, ""); | ||
|
||
ctx.compileShader(shader); | ||
|
||
ctx.attachShader(program, shader); | ||
|
||
var shaderlog = ctx.getShaderInfoLog(shader); | ||
|
||
ctx.drawElements(0, 1, 2, 3); | ||
|
||
ctx.enableVertexAttribArray(5); | ||
|
||
ctx.vertexAttribPointer(0, 1, 2, false, 3, 4); | ||
|
||
var loc = ctx.getAttribLocation(program, ""); | ||
|
||
ctx.drawArrays(0, 1, 2); | ||
|
||
exports.canvasEl = canvasEl; | ||
exports.ctx = ctx; | ||
exports.buf = buf; | ||
exports.program = program; | ||
exports.programlog = programlog; | ||
exports.shader = shader; | ||
exports.shaderlog = shaderlog; | ||
exports.loc = loc; | ||
/* canvasEl Not a pure module */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.