mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
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:
parent
7f6b484684
commit
c0e9512b39
3 changed files with 12 additions and 5 deletions
2
cli/tsc/dts/lib.deno_webgpu.d.ts
vendored
2
cli/tsc/dts/lib.deno_webgpu.d.ts
vendored
|
@ -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>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue