-
Notifications
You must be signed in to change notification settings - Fork 329
Closed
Labels
Milestone
Description
I'd like to propose moving the GPUAdapter isFallbackAdapter
boolean inside the GPUAdapterInfo
interface.
Currently, it's defined externally, which prevents libraries that take user-provided GPUDevice objects from accessing this information through the adapterInfo
attribute on GPUDevice.
Moreover, in Emscripten for instance, since adapter.isFallbackAdapter
is not available, WGPUAdapterInfo adapterType
is always WGPUAdapterType_Unknown
. See https://webgpu-native.github.io/webgpu-headers/structWGPUAdapterInfo.html.
interface GPUAdapter {
[SameObject] readonly attribute GPUSupportedFeatures features;
[SameObject] readonly attribute GPUSupportedLimits limits;
[SameObject] readonly attribute GPUAdapterInfo info;
- readonly attribute boolean isFallbackAdapter;
Promise<GPUDevice> requestDevice(optional GPUDeviceDescriptor descriptor = {});
};
[Exposed=(Window, Worker), SecureContext]
interface GPUAdapterInfo {
readonly attribute DOMString vendor;
readonly attribute DOMString architecture;
readonly attribute DOMString device;
readonly attribute DOMString description;
+ readonly attribute boolean isFallbackAdapter;
};
Thoughts?