Skip to content
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

Add WGPUDeviceLostReason_Unknown, deprecate _Undefined #21914

Merged
merged 1 commit into from
May 17, 2024

Conversation

hocheung-chromium
Copy link
Contributor

Please check
https://issues.chromium.org/issues/42241081 for
more information and progress.

webgpu-headers PR:
webgpu-native/webgpu-headers#288.

@kainino0x @austinEng

@sbc100 sbc100 requested a review from kainino0x May 9, 2024 20:11
@austinEng
Copy link
Contributor

I believe for this PR as well, unknown should be value 0x1, and destroyed should be value 0x2

@hocheung-chromium
Copy link
Contributor Author

I believe for this PR as well, unknown should be value 0x1, and destroyed should be value 0x2

I have redefined the values for Unknown and Destoryed

@austinEng

@austinEng
Copy link
Contributor

looks good to me, but I don't have review permissions

@hocheung-chromium
Copy link
Contributor Author

Hello Kai Ninomiya, could you please take a moment to review this PR? Thanks.

@kainino0x

@@ -324,8 +324,8 @@ typedef enum WGPUCullMode {
} WGPUCullMode WGPU_ENUM_ATTRIBUTE;

typedef enum WGPUDeviceLostReason {
WGPUDeviceLostReason_Undefined = 0x00000000,
WGPUDeviceLostReason_Destroyed = 0x00000001,
WGPUDeviceLostReason_Unknown = 0x00000001,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to avoid breaking changes for now, so please add:
WGPUDeviceLostReason_Undefined = 0x00000001,
(with the same value 1 as Unknown)

and same elsewhere

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have uploaded a new commit, please review it.

@kainino0x

Copy link
Collaborator

@kainino0x kainino0x left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kainino0x kainino0x changed the title Rename WGPUDeviceLostReason_Undefined to Unknown Add WGPUDeviceLostReason_Unknown, deprecate _Undefined May 17, 2024
@kainino0x kainino0x merged commit 2e3d7f1 into emscripten-core:main May 17, 2024
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants