Skip to content

[Hgi] Add HgiGLWrapper to expose HgiGL to Swift#29

Merged
maddyadams merged 1 commit into
apple:devfrom
furbytm:feat/hgi-gl-wrapper
Jun 29, 2026
Merged

[Hgi] Add HgiGLWrapper to expose HgiGL to Swift#29
maddyadams merged 1 commit into
apple:devfrom
furbytm:feat/hgi-gl-wrapper

Conversation

@furbytm

@furbytm furbytm commented Jun 28, 2026

Copy link
Copy Markdown

Description

This PR introduces HgiGLWrapper to expose the underlying OpenUSD HgiGL type to Swift.

Previously, users building cross-platform Hydra implementations had to rely on fragile compile-time guards to check for its presence. Exposing this type to Swift eliminates that friction.

Related Issues / PRs

Checklist

  • Followed the contribution guidelines in CONTRIBUTING.md
  • Omitted local generation artifacts (Package.swift / swift-package) from the commit
  • Added corresponding verification tests in the test suite

Introduce HgiGLWrapper to wrap the underlying OpenUSD HgiGL
type to Swift. This eliminates a fragile guard pattern used to
conditionally compile around its presence for users building
cross-platform Hydra implementations.

Resolves apple#28

Signed-off-by: Furby™ <furby@wabi.foundation>
@maddyadams

Copy link
Copy Markdown
Contributor

Looks good to me. Can you make the target branch be dev instead of main? (I prefer to keep main as "the latest release, will work out of the box without issues", whereas dev is "accepted PRs that will be part of the next release" to minimize git traffic from e.g. remaking the XCFrameworks or documentation archives/docs folder.)

@furbytm

furbytm commented Jun 29, 2026

Copy link
Copy Markdown
Author

Can you make the target branch be dev instead of main?

Done, retargeted to dev. Thanks! I will work out of dev for all future work.

@maddyadams maddyadams merged commit 68c7414 into apple:dev Jun 29, 2026
@maddyadams maddyadams mentioned this pull request Jun 29, 2026
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