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

Update unclear chained struct names for better readability #318

Merged

Conversation

beaufortfrancois
Copy link
Contributor

@beaufortfrancois beaufortfrancois commented Jul 31, 2024

Following #212 (comment), this PR updates unclear chained struct names (and their respective SType) for better readability.

  • WGPUShaderModuleSPIRV -> WGPUShaderSourceSPIRV
  • WGPUShaderModuleWGSL -> WGPUShaderSourceWGSL
  • WGPUSurfaceFromAndroidNativeWindow -> WGPUSurfaceSourceAndroidNativeWindow
  • WGPUSurfaceFromCanvasHTMLSelector -> WGPUSurfaceSourceCanvasHTMLSelector_Emscripten
  • WGPUSurfaceFromMetalLayer -> WGPUSurfaceSourceMetalLayer
  • WGPUSurfaceFromWaylandSurface -> WGPUSurfaceSourceWaylandSurface
  • WGPUSurfaceFromWindowsHWND -> WGPUSurfaceSourceWindowsHWND
  • WGPUSurfaceFromXcbWindow -> WGPUSurfaceSourceXCBWindow
  • WGPUSurfaceFromXlibWindow -> WGPUSurfaceSourceXlibWindow

It also fixes WGPURenderPassMaxDrawCount SType.

@beaufortfrancois
Copy link
Contributor Author

@kainino0x @rajveermalviya Please review

@beaufortfrancois
Copy link
Contributor Author

(gentle ping)

struct WGPUSurfaceFromXcbWindow;
struct WGPUSurfaceFromXlibWindow;
struct WGPUSurfaceSourceAndroidNativeWindow;
struct WGPUSurfaceSourceCanvasHTMLSelector_Emscripten;
Copy link
Collaborator

Choose a reason for hiding this comment

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

IIRC we actually want to remove this from this header (we'll make it an Emscripten-exclusive addon for now) but that doesn't need to block this PR.

@kainino0x kainino0x enabled auto-merge (squash) August 26, 2024 15:23
@kainino0x kainino0x merged commit 1fe734a into webgpu-native:main Aug 26, 2024
2 of 3 checks passed
@beaufortfrancois beaufortfrancois deleted the update-chained-struct-names branch August 28, 2024 09:59
aarongable pushed a commit to chromium/chromium that referenced this pull request Aug 30, 2024
- No operational changes.

webgpu-native/webgpu-headers#309
webgpu-native/webgpu-headers#310
webgpu-native/webgpu-headers#318

Bug: 42241174
Change-Id: I635d420c58a061bf463d3d319b7f0d60a867bcc4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5691772
Reviewed-by: Colin Blundell <blundell@chromium.org>
Commit-Queue: Fr <beaufort.francois@gmail.com>
Reviewed-by: Kai Ninomiya <kainino@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1349098}
hubot pushed a commit to google/skia that referenced this pull request Sep 3, 2024
- No operational changes.

webgpu-native/webgpu-headers#309
webgpu-native/webgpu-headers#310
webgpu-native/webgpu-headers#318

Bug: 42241174
Change-Id: Ia881b48c222b6448fc1e9682e542d4172eaf3958
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/874956
Commit-Queue: Greg Daniel <egdaniel@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Auto-Submit: Fr <beaufort.francois@gmail.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
aarongable pushed a commit to chromium/chromium that referenced this pull request Sep 5, 2024
- No operational changes.

webgpu-native/webgpu-headers#309
webgpu-native/webgpu-headers#310
webgpu-native/webgpu-headers#318

Bug: 42241174
Change-Id: Ifff832f518f280178842ded7e5879e741a48ec41
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5830449
Auto-Submit: Fr <beaufort.francois@gmail.com>
Reviewed-by: Kai Ninomiya <kainino@chromium.org>
Commit-Queue: Fr <beaufort.francois@gmail.com>
Reviewed-by: Sylvain Defresne <sdefresne@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1351225}
copybara-service bot pushed a commit to google/dawn that referenced this pull request Sep 5, 2024
aarongable pushed a commit to chromium/chromium that referenced this pull request Sep 6, 2024
- No operational changes.

webgpu-native/webgpu-headers#309
webgpu-native/webgpu-headers#310
webgpu-native/webgpu-headers#318

Bug: 42241174
Change-Id: Ic0dacce67f395c4b3b89c0d48fd12680c5b9d48a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5829207
Reviewed-by: Colin Blundell <blundell@chromium.org>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Fr <beaufort.francois@gmail.com>
Cr-Commit-Position: refs/heads/main@{#1351933}
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.

2 participants