Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Feb 11, 2024
1 parent ca54f81 commit f186d5e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 11 deletions.
8 changes: 8 additions & 0 deletions CHANGELIST.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Change List

### 1.5.1

* handle empty bind groups.

### 1.5.0

* support other resource types, storageTextures, textures, samplers, externalTextures

### 1.4.0

* Support `atomic`
Expand Down
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,19 +93,19 @@ const texture = createTextureFromSource(device, someCanvasVideoImageBitmap, {

### Load 6 images as a cubemap (with mips)

```js
import { createTextureFromImage } from 'webgpu-utils';

```js
const texture = await createTextureFromImages(device, [
'images/yokohama/posx.jpg',
'images/yokohama/negx.jpg',
'images/yokohama/posy.jpg',
'images/yokohama/negy.jpg',
'images/yokohama/posz.jpg',
'images/yokohama/negz.jpg',
], {
mips: true,
});
const texture = await createTextureFromImages(device, [
'images/yokohama/posx.jpg',
'images/yokohama/negx.jpg',
'images/yokohama/posy.jpg',
'images/yokohama/negy.jpg',
'images/yokohama/posz.jpg',
'images/yokohama/negz.jpg',
], {
mips: true,
});
```

### Load data as a texture
Expand Down

0 comments on commit f186d5e

Please sign in to comment.