-
Notifications
You must be signed in to change notification settings - Fork 8
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
Use new Surface API #7
Conversation
[](WGPURequestDeviceStatus status, WGPUDevice cDevice, | ||
const char* message, void* userdata) { | ||
wgpu::Device device = wgpu::Device::Acquire(cDevice); | ||
device.SetUncapturedErrorCallback( |
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.
Note that this will be part of the descriptor soon.
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.
(It is already there in Dawn, but Emscripten doesn't implement it.)
64a5abc
to
6a83afa
Compare
6a83afa
to
1a5995e
Compare
@kainino0x @Kangz I've updated this PR. Note that I'm now reusing |
369cf43
to
9370eb7
Compare
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 once emscripten changes land
@kainino0x I've addressed your latest feedback. I'll merge when emscripten changes land. Thank you! |
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.
Note that I'm now using default values for alphaMode and presentMode
I'll merge when Chrome 126 hits stable. Thanks for the reviews! |
On Emscripten, it requires emscripten-core/emscripten#21939