Skip to content

Commit 6475d12

Browse files
committed
Deploying to gh-pages from @ 626a4b8 πŸš€
1 parent 9a0aff5 commit 6475d12

121 files changed

Lines changed: 4124 additions & 242 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

β€Žsample/a-buffer/main.jsβ€Ž

Lines changed: 97 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žsample/a-buffer/main.js.mapβ€Ž

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žsample/a-buffer/main.tsβ€Ž

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
import { mat4, vec3 } from 'wgpu-matrix';
22
import { GUI } from 'dat.gui';
33

4-
import { quitIfWebGPUNotAvailable, quitIfLimitLessThan } from '../util';
4+
import {
5+
quitIfWebGPUNotAvailableOrMissingFeatures,
6+
quitIfLimitLessThan,
7+
} from '../util';
58
import { mesh } from '../../meshes/teapot';
69

710
import opaqueWGSL from './opaque.wgsl';
@@ -21,7 +24,7 @@ quitIfLimitLessThan(adapter, 'maxStorageBuffersInFragmentStage', 2, limits);
2124
const device = await adapter?.requestDevice({
2225
requiredLimits: limits,
2326
});
24-
quitIfWebGPUNotAvailable(adapter, device);
27+
quitIfWebGPUNotAvailableOrMissingFeatures(adapter, device);
2528

2629
const context = canvas.getContext('webgpu');
2730
const presentationFormat = navigator.gpu.getPreferredCanvasFormat();

β€Žsample/animometer/main.jsβ€Ž

Lines changed: 97 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žsample/animometer/main.js.mapβ€Ž

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žsample/animometer/main.tsβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { GUI } from 'dat.gui';
22
import animometerWGSL from './animometer.wgsl';
3-
import { quitIfWebGPUNotAvailable } from '../util';
3+
import { quitIfWebGPUNotAvailableOrMissingFeatures } from '../util';
44

55
const canvas = document.querySelector('canvas') as HTMLCanvasElement;
66
const adapter = await navigator.gpu?.requestAdapter({
77
featureLevel: 'compatibility',
88
});
99
const device = await adapter?.requestDevice();
10-
quitIfWebGPUNotAvailable(adapter, device);
10+
quitIfWebGPUNotAvailableOrMissingFeatures(adapter, device);
1111

1212
const perfDisplayContainer = document.createElement('div');
1313
perfDisplayContainer.style.color = 'white';

0 commit comments

Comments
Β (0)