-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
BREAKING(webgpu/unstable): Replace async .requestAdapterInfo() with sync .info #24783
BREAKING(webgpu/unstable): Replace async .requestAdapterInfo() with sync .info #24783
Conversation
… with synchronous .info Closes denoland#24779 Ref gpuweb/gpuweb#4662
@@ -525,7 +525,7 @@ class GPUAdapter { | |||
adapterInfo[_architecture] = architecture; | |||
adapterInfo[_device] = device; | |||
adapterInfo[_description] = description; | |||
return PromiseResolve(adapterInfo); | |||
return adapterInfo; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because of the [SameObject]
attribute, the info
object must be cached as well as features
and limits
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@petamoriken can you open an issue for features
and limits
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for my bad English, I meant to say that features
and limits
are already cached and info
should be too 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah my bad, i thought they werent!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Closes #24779
Ref gpuweb/gpuweb#4662