From f186d5e57f8db323f69e664582e071ebf2d79223 Mon Sep 17 00:00:00 2001 From: Gregg Tavares Date: Sun, 11 Feb 2024 09:46:42 -0800 Subject: [PATCH] readme --- CHANGELIST.md | 8 ++++++++ README.md | 22 +++++++++++----------- 2 files changed, 19 insertions(+), 11 deletions(-) diff --git a/CHANGELIST.md b/CHANGELIST.md index c97f90a..82b3e85 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -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` diff --git a/README.md b/README.md index 74faca7..97a215e 100644 --- a/README.md +++ b/README.md @@ -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