Skip to content

Commit b28ddf7

Browse files
Don't use Compatibility Mode till Chrome bug is fixed (#523)
This PR removes the use of featureLevel: 'compatibility' in the requestAdapter() call for the videoUploading sample. ## Why Using compatibility mode currently triggers a validation error on Chrome with Metal backend (macOS) when importing external video textures. Fixes #522 Verified and working <img width="1823" height="1099" alt="465770920-4e768737-a422-47a7-8d96-5f6b825a8aa5" src="https://github.com/user-attachments/assets/6d3cbf24-7ef8-439d-aba9-e08b13eb354e" />
1 parent 8facdad commit b28ddf7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

sample/videoUploading/main.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ import fullscreenTexturedQuadWGSL from '../../shaders/fullscreenTexturedQuad.wgs
33
import sampleExternalTextureWGSL from '../../shaders/sampleExternalTexture.frag.wgsl';
44
import { quitIfWebGPUNotAvailable } from '../util';
55

6-
const adapter = await navigator.gpu?.requestAdapter({
7-
featureLevel: 'compatibility',
8-
});
6+
const adapter = await navigator.gpu?.requestAdapter();
97
const device = await adapter?.requestDevice();
108
quitIfWebGPUNotAvailable(adapter, device);
119

0 commit comments

Comments
 (0)