Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set featureLevel: "compatibility" when compatibility=1 is enabled #4081

Merged
merged 11 commits into from
Dec 12, 2024
3 changes: 3 additions & 0 deletions src/common/util/navigator_gpu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ export function setDefaultRequestAdapterOptions(options: GPURequestAdapterOption
throw new Error('must call setDefaultRequestAdapterOptions before getGPU');
}
defaultRequestAdapterOptions = { ...options };
// MAINTENANCE_TODO: remove this once compatibilityMode is removed.
kainino0x marked this conversation as resolved.
Show resolved Hide resolved
defaultRequestAdapterOptions.featureLevel =
'compatibilityMode' in options && options.compatibilityMode ? 'compatibility' : 'core';
}

export function getDefaultRequestAdapterOptions() {
Expand Down
Binary file modified src/resources/cache/webgpu/shader/execution/bitcast.bin
kainino0x marked this conversation as resolved.
Show resolved Hide resolved
Binary file not shown.
Loading