Skip to content

Commit

Permalink
Deploying to gh-pages from @ 0ce1ef2 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
toji committed Jan 17, 2025
1 parent e362ec3 commit 149045f
Show file tree
Hide file tree
Showing 76 changed files with 178 additions and 76 deletions.
4 changes: 3 additions & 1 deletion sample/animometer/main.js

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

2 changes: 1 addition & 1 deletion sample/animometer/main.js.map

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion sample/animometer/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import animometerWGSL from './animometer.wgsl';
import { quitIfWebGPUNotAvailable } from '../util';

const canvas = document.querySelector('canvas') as HTMLCanvasElement;
const adapter = await navigator.gpu?.requestAdapter();
const adapter = await navigator.gpu?.requestAdapter({
featureLevel: 'compatibility',
});
const device = await adapter?.requestDevice();
quitIfWebGPUNotAvailable(adapter, device);

Expand Down
4 changes: 3 additions & 1 deletion sample/blending/main.js

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

2 changes: 1 addition & 1 deletion sample/blending/main.js.map

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion sample/blending/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import { GUI } from 'dat.gui';
import { quitIfWebGPUNotAvailable } from '../util';
import texturedQuadWGSL from './texturedQuad.wgsl';

const adapter = await navigator.gpu?.requestAdapter();
const adapter = await navigator.gpu?.requestAdapter({
featureLevel: 'compatibility',
});
const device = await adapter?.requestDevice();
quitIfWebGPUNotAvailable(adapter, device);

Expand Down
4 changes: 3 additions & 1 deletion sample/cameras/main.js

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

2 changes: 1 addition & 1 deletion sample/cameras/main.js.map

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion sample/cameras/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ gui.add(params, 'type', ['arcball', 'WASD']).onChange(() => {
oldCameraType = newCameraType;
});

const adapter = await navigator.gpu?.requestAdapter();
const adapter = await navigator.gpu?.requestAdapter({
featureLevel: 'compatibility',
});
const device = await adapter?.requestDevice();
quitIfWebGPUNotAvailable(adapter, device);
const context = canvas.getContext('webgpu') as GPUCanvasContext;
Expand Down
4 changes: 3 additions & 1 deletion sample/computeBoids/main.js

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

2 changes: 1 addition & 1 deletion sample/computeBoids/main.js.map

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion sample/computeBoids/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import updateSpritesWGSL from './updateSprites.wgsl';
import { GUI } from 'dat.gui';

const canvas = document.querySelector('canvas') as HTMLCanvasElement;
const adapter = await navigator.gpu?.requestAdapter();
const adapter = await navigator.gpu?.requestAdapter({
featureLevel: 'compatibility',
});
quitIfAdapterNotAvailable(adapter);

const hasTimestampQuery = adapter.features.has('timestamp-query');
Expand Down
4 changes: 3 additions & 1 deletion sample/fractalCube/main.js

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

2 changes: 1 addition & 1 deletion sample/fractalCube/main.js.map

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion sample/fractalCube/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ import sampleSelfWGSL from './sampleSelf.frag.wgsl';
import { quitIfWebGPUNotAvailable } from '../util';

const canvas = document.querySelector('canvas') as HTMLCanvasElement;
const adapter = await navigator.gpu?.requestAdapter();
const adapter = await navigator.gpu?.requestAdapter({
featureLevel: 'compatibility',
});
const device = await adapter?.requestDevice();
quitIfWebGPUNotAvailable(adapter, device);

Expand Down
4 changes: 3 additions & 1 deletion sample/gameOfLife/main.js

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

2 changes: 1 addition & 1 deletion sample/gameOfLife/main.js.map

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion sample/gameOfLife/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import fragWGSL from './frag.wgsl';
import { quitIfWebGPUNotAvailable } from '../util';

const canvas = document.querySelector('canvas') as HTMLCanvasElement;
const adapter = await navigator.gpu?.requestAdapter();
const adapter = await navigator.gpu?.requestAdapter({
featureLevel: 'compatibility',
});
const device = await adapter?.requestDevice();
quitIfWebGPUNotAvailable(adapter, device);

Expand Down
4 changes: 3 additions & 1 deletion sample/helloTriangle/main.js

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

Loading

0 comments on commit 149045f

Please sign in to comment.