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

Issues with C / C++ bool type. #84

Closed
Kangz opened this issue Apr 1, 2021 · 2 comments
Closed

Issues with C / C++ bool type. #84

Kangz opened this issue Apr 1, 2021 · 2 comments
Assignees
Labels
has resolution Issue is resolved, just needs to be done

Comments

@Kangz
Copy link
Collaborator

Kangz commented Apr 1, 2021

This is an issue that someone (graphite?) raised on Discord but didn't file here. The bool types in C/C++ are kinda weird and can not match, especially when put back to back. webgpu.h shouldn't rely on this type, and instead do something like Vulkan's VkBool32.

@kvark kvark added the bug label Apr 1, 2021
@kainino0x kainino0x added the has resolution Issue is resolved, just needs to be done label May 24, 2023
@lokokung lokokung self-assigned this Jul 26, 2023
aarongable pushed a commit to chromium/chromium that referenced this issue Aug 2, 2023
See https://chromium-review.googlesource.com/c/chromium/src/+/4740656
for Dawn-side changes.

github.com/webgpu-native/webgpu-headers/issues/84

Change-Id: I524ec7ee1b8cb2e2834aa8c8a92388c5b74ca830
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4740656
Reviewed-by: Kai Ninomiya <[email protected]>
Commit-Queue: Loko Kung <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1178207}
@kainino0x kainino0x removed the bug label Aug 3, 2023
@Beyley
Copy link

Beyley commented Aug 3, 2023

is there an ETA for a fix landing in this repository? movement seems to be happening chromium side, but i dont see an open PR over here, should i open a PR for adding a typedef for WGPUBool?

@lokokung
Copy link
Collaborator

lokokung commented Aug 3, 2023

Yea this should be coming within the next week. I am trying to land the effective changes on Chromium side to make sure it will work there. I can create the corresponding PR here once that's progressed a bit more.

wrench-bot pushed a commit to hexops-graveyard/dawn that referenced this issue Aug 6, 2023
On Dawn side, this includes some compatibility changes so that it is
ergonomic to use the new underlying bool type transparently.

This change must wait for the following change(s) to land:
- https://chromium-review.googlesource.com/c/chromium/src/+/4740656

github.com/webgpu-native/webgpu-headers/issues/84

Change-Id: Ie0f37dfc313ec32ae4aa5236ec0ecf4dab353923
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/144207
Kokoro: Kokoro <[email protected]>
Commit-Queue: Loko Kung <[email protected]>
Reviewed-by: Austin Eng <[email protected]>
Reviewed-by: Kai Ninomiya <[email protected]>
@lokokung lokokung closed this as completed Aug 8, 2023
aarongable pushed a commit to chromium/chromium that referenced this issue Aug 8, 2023
This change must wait for the following change(s) to land and roll:
- https://dawn-review.googlesource.com/c/dawn/+/144207

github.com/webgpu-native/webgpu-headers/issues/84

Change-Id: Iab5f80ee85442f8274cf388198be6605a0f37d2d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4740397
Reviewed-by: Kai Ninomiya <[email protected]>
Commit-Queue: Loko Kung <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1180618}
wrench-bot pushed a commit to hexops-graveyard/dawn that referenced this issue Aug 10, 2023
This change should only land after the following change(s) land:
- https://chromium-review.googlesource.com/c/chromium/src/+/4740397

github.com/webgpu-native/webgpu-headers/issues/84

Change-Id: I66b5eb077b678de4eff312b6628f0d9b54871867
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/144205
Commit-Queue: Loko Kung <[email protected]>
Reviewed-by: Kai Ninomiya <[email protected]>
Reviewed-by: Austin Eng <[email protected]>
Kokoro: Kokoro <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
has resolution Issue is resolved, just needs to be done
Projects
None yet
Development

No branches or pull requests

5 participants