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

obj: Move Platform and InitOptions fields into core.windows #1309

Merged
merged 7 commits into from
Nov 30, 2024

Conversation

foxnne
Copy link
Contributor

@foxnne foxnne commented Nov 30, 2024

This PR is stacked on top of #1308, so review that one first.

At the moment, this PR breaks a lot and only triangle example on macOS is building. The effort here is to move more of Core to use the object system, first of these efforts is to treat windows as a list of objects so all window-dependent fields have been moved to core.windows and Platform.tick just checks for field changes and responds accordingly.

  • By selecting this checkbox, I agree to license my contributions to this project under the license(s) described in the LICENSE file, and I have the right to do so or have received permission to do so by an employer or client I am producing work for whom has this right.

src/core/Darwin.zig Outdated Show resolved Hide resolved
src/Core.zig Show resolved Hide resolved
src/Core.zig Show resolved Hide resolved
src/Core.zig Show resolved Hide resolved

// GPU
// When device is not null, the rest of the fields have been
// initialized.
Copy link
Member

Choose a reason for hiding this comment

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

comment needs updating (device cannot be null)

src/Core.zig Show resolved Hide resolved
@slimsag slimsag merged commit 1fe47b2 into hexops:main Nov 30, 2024
0 of 3 checks passed
@foxnne foxnne deleted the platforms branch December 1, 2024 18:57
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