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

Transfer offset decorations when legalizing laid-out structs #5525

Merged
merged 4 commits into from
Nov 11, 2024

Conversation

aleino-nv
Copy link
Collaborator

Struct legalization removing fields not representable in memory should transfer offset decorations in case the struct has already had offsets calculated.

Closes #5264.

@aleino-nv aleino-nv requested a review from a team as a code owner November 8, 2024 11:32
@aleino-nv aleino-nv added the pr: non-breaking PRs without breaking changes label Nov 8, 2024
@aleino-nv
Copy link
Collaborator Author

/format

@slangbot
Copy link
Contributor

slangbot commented Nov 8, 2024

🌈 Formatted, please merge the changes from this PR

source/slang/slang-ir.h Outdated Show resolved Hide resolved
source/slang/slang-ir.h Outdated Show resolved Hide resolved
Struct legalization removing fields not representable in memory should transfer all
decorations in case the struct has already had offsets calculated.

Closes shader-slang#5264.
@aleino-nv
Copy link
Collaborator Author

/format

@slangbot
Copy link
Contributor

🌈 Formatted, please merge the changes from this PR

@csyonghe csyonghe merged commit 9aa7adb into shader-slang:master Nov 11, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: non-breaking PRs without breaking changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WGSL: Nullpointer dereference in WGSLSourceEmitter::emitStructFieldAttributes
3 participants