BREAKING(webgpu/unstable): Replace async .requestAdapterInfo() with sync .info (#24783)

Closes https://github.com/denoland/deno/issues/24779

Ref https://github.com/gpuweb/gpuweb/pull/4662
This commit is contained in:
Divy Srivastava 2024-08-06 03:00:32 -07:00 committed by GitHub
parent 7f6b484684
commit c0e9512b39
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 12 additions and 5 deletions

View file

@ -123,10 +123,10 @@ declare type GPUPowerPreference = "low-power" | "high-performance";
declare class GPUAdapter {
readonly features: GPUSupportedFeatures;
readonly limits: GPUSupportedLimits;
readonly info: GPUAdapterInfo;
readonly isFallbackAdapter: boolean;
requestDevice(descriptor?: GPUDeviceDescriptor): Promise<GPUDevice>;
requestAdapterInfo(): Promise<GPUAdapterInfo>;
}
/**