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

fix(hlsl): emit constructor functions for arrays #2281

Merged
merged 2 commits into from
Mar 20, 2023

Conversation

ErichDonGubler
Copy link
Member

@ErichDonGubler ErichDonGubler commented Mar 15, 2023

@ErichDonGubler
Copy link
Member Author

Looks like CI is only failing on #2279. 😮‍💨👍🏻

@teoxoy
Copy link
Member

teoxoy commented Mar 16, 2023

Looks like CI is only failing on #2279. 😮‍💨👍🏻

A rebase should get it working.

Copy link
Member

@teoxoy teoxoy left a comment

Choose a reason for hiding this comment

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

LGTM, but let's add/extend one of the test snapshots with the code that was previously not getting translated correctly (from #2184)

@ErichDonGubler ErichDonGubler force-pushed the hlsl-arr-ctor-fns branch 2 times, most recently from 98e63d5 to 35f5996 Compare March 20, 2023 15:20
@ErichDonGubler
Copy link
Member Author

@teoxoy: Added a new test! I broke out a commit for adding a deliberately failing test case in HLSL, and then fixing it in the subsequent commit. Not sure if that's how you'd like to commit it, but I'm open to changing it if you want. 😊

@ErichDonGubler ErichDonGubler marked this pull request as ready for review March 20, 2023 15:25
@teoxoy
Copy link
Member

teoxoy commented Mar 20, 2023

I broke out a commit for adding a deliberately failing test case in HLSL, and then fixing it in the subsequent commit. Not sure if that's how you'd like to commit it, but I'm open to changing it if you want.

That's great for PRs - makes it a lot clearer when looking at the commit that fixes the issue the things that changed in the snapshots.

But I don't think we should merge the commits separately though since if you'd bisect on the first commit, the tests will fail.

Copy link
Member

@teoxoy teoxoy left a comment

Choose a reason for hiding this comment

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

Good stuff!

@gfx-rs gfx-rs deleted a comment from codecov-commenter Mar 20, 2023
@teoxoy teoxoy merged commit 0b87d19 into gfx-rs:master Mar 20, 2023
@ErichDonGubler ErichDonGubler deleted the hlsl-arr-ctor-fns branch March 31, 2023 17:49
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.

[hlsl-out] Arrays in Structs Are Incorrectly Loaded When Loaded as A Whole Struct
2 participants