Skip to content

Commit

Permalink
Deploying to gh-pages from @ 9b50bd4 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Dec 25, 2023
1 parent a37ea06 commit aa8c572
Show file tree
Hide file tree
Showing 20 changed files with 983 additions and 308 deletions.
4 changes: 4 additions & 0 deletions CHANGELIST.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change List

### 1.1.0

* Make `generateMipmap` support compatibility mode

### 1.0.0

* switch primitive functions to use named parameters.
Expand Down
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -346,16 +346,12 @@ import { createTextureFromImage } from 'webgpu-utils';
```
git clone https://github.com/greggman/webgpu-utils.git
cd webgpu-utils
npm install
npm ci
npm start
```

This will run rollup in watch mode, building from typescript into
`dist/1.x/webgpu-utils.js`.

```
npx servez
```
`dist/1.x/webgpu-utils.js` and start a server

Now open [`http://localhost:8080/test/`](http://localhost:8080/test/) to run tests.

Expand Down
16 changes: 16 additions & 0 deletions build/tools/serve.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import {spawn} from 'child_process';

spawn('npm', [
'run',
'watch',
], {
shell: true,
stdio: 'inherit',
});

spawn('./node_modules/.bin/servez', [
], {
shell: true,
stdio: 'inherit',
});

12 changes: 7 additions & 5 deletions dist/1.x/generate-mipmap.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ export declare function numMipLevels(size: GPUExtent3D, dimension?: GPUTextureDi
/**
* Generates mip levels from level 0 to the last mip for an existing texture
*
* The texture must have been created with TEXTURE_BINDING and
* RENDER_ATTACHMENT and been created with mip levels
* The texture must have been created with TEXTURE_BINDING and RENDER_ATTACHMENT
* and been created with mip levels
*
* @param device
* @param texture
* @param device A GPUDevice
* @param texture The texture to create mips for
* @param textureBindingViewDimension This is only needed in compatibility mode
* and it is only needed when the texture is going to be used as a cube map.
*/
export declare function generateMipmap(device: GPUDevice, texture: GPUTexture): void;
export declare function generateMipmap(device: GPUDevice, texture: GPUTexture, textureBindingViewDimension?: GPUTextureViewDimension): void;
159 changes: 111 additions & 48 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.

Loading

0 comments on commit aa8c572

Please sign in to comment.