Skip to content

Commit

Permalink
Deploying to gh-pages from @ 0964e68 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Jun 9, 2024
1 parent 2cc23db commit e7a93e4
Show file tree
Hide file tree
Showing 20 changed files with 190 additions and 285 deletions.
4 changes: 0 additions & 4 deletions CHANGELIST.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# Change List

### 1.8.0

* Support creating 3d textures from images/canvases...

### 1.7.0

* Add `primitives.deindex`
Expand Down
30 changes: 4 additions & 26 deletions dist/1.x/webgpu-utils.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/1.x/webgpu-utils.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/1.x/webgpu-utils.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/1.x/webgpu-utils.min.js.map

Large diffs are not rendered by default.

30 changes: 4 additions & 26 deletions dist/1.x/webgpu-utils.module.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/1.x/webgpu-utils.module.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions dist/1.x/webgpu-utils.module.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/1.x/webgpu-utils.module.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/bind-group-layouts.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</head>
<body>
<canvas></canvas>
<div id="b"><a href="https://github.com/greggman/webgpu-utils.org">webgpu-utils</a> - bind group layouts</div>
<div id="b"><a href="https://github.com/greggman/webgpu-utils.org">webgpu-utils</a> - 2d-array texture</div>
<div id="fail" style="display: none;"><div id="fail-msg"></div></div>
<script type="module" src="bind-group-layouts.js"></script>
</body>
Expand Down
8 changes: 8 additions & 0 deletions examples/primitives.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,14 @@ async function main() {
});
uniformView.views.color.set([r(1), r(1), r(1), 1]);

const matrix = uniformView.views.world;
const t = vec3.mulScalar(vec3.normalize([r(-1, 1), r(-1, 1), r(-1, 1)]), r(10));
mat4.translation(t, matrix);
mat4.rotateX(matrix, r(Math.PI * 2), matrix);
mat4.rotateY(matrix, r(Math.PI), matrix);
const s = r(0.25, 1);
mat4.scale(matrix, [s, s, s], matrix);

device.queue.writeBuffer(uniformBuffer, 0, uniformView.arrayBuffer);

const bindGroup = device.createBindGroup({
Expand Down
8 changes: 8 additions & 0 deletions examples/stencil-cube.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,14 @@ async function main() {
});
uniformView.views.color.set(hslToRGBA(hue + r(0.2), r(0.7, 1), r(0.5, 0.8)));

const matrix = uniformView.views.world;
const t = vec3.mulScalar(vec3.normalize([r(-1, 1), r(-1, 1), r(-1, 1)]), r(10));
mat4.translation(t, matrix);
mat4.rotateX(matrix, r(Math.PI * 2), matrix);
mat4.rotateY(matrix, r(Math.PI), matrix);
const s = r(0.25, 1);
mat4.scale(matrix, [s, s, s], matrix);

device.queue.writeBuffer(uniformBuffer, 0, uniformView.arrayBuffer);

const bindGroup = device.createBindGroup({
Expand Down
8 changes: 8 additions & 0 deletions examples/stencil.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,14 @@ async function main() {
});
uniformView.views.color.set([r(1), r(1), r(1), 1]);

const matrix = uniformView.views.world;
const t = vec3.mulScalar(vec3.normalize([r(-1, 1), r(-1, 1), r(-1, 1)]), r(10));
mat4.translation(t, matrix);
mat4.rotateX(matrix, r(Math.PI * 2), matrix);
mat4.rotateY(matrix, r(Math.PI), matrix);
const s = r(0.25, 1);
mat4.scale(matrix, [s, s, s], matrix);

device.queue.writeBuffer(uniformBuffer, 0, uniformView.arrayBuffer);

const bindGroup = device.createBindGroup({
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<!-- this file is auto-generated from README.md. Do not edited directly -->
<!--
@license webgpu-utils 1.8.1 Copyright (c) 2023, Gregg Tavares All Rights Reserved.
@license webgpu-utils 1.7.3 Copyright (c) 2023, Gregg Tavares All Rights Reserved.
Available via the MIT license.
see: http://github.com/greggman/webgpu-utils for details
-->
Expand Down
Loading

0 comments on commit e7a93e4

Please sign in to comment.