Skip to content

Commit 849d42d

Browse files
committed
remove unused code
1 parent cbbf0ff commit 849d42d

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

webgpu/webgpu-compute-shaders-histogram-video.html

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,7 @@
4545

4646
async function main() {
4747
const adapter = await navigator.gpu?.requestAdapter();
48-
const canTimestamp = adapter?.features.has('timestamp-query');
49-
const device = await adapter?.requestDevice({
50-
requiredFeatures: [
51-
...(canTimestamp ? ['timestamp-query'] : []),
52-
],
53-
});
48+
const device = await adapter?.requestDevice();
5449
if (!device) {
5550
fail('need a browser that supports WebGPU');
5651
return;

0 commit comments

Comments
 (0)