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

[hlsl-out] Zero init struct constructor #1890

Merged
merged 1 commit into from
May 3, 2022

Conversation

teoxoy
Copy link
Member

@teoxoy teoxoy commented May 3, 2022

Work around for FXC error X4555: cannot use casts on l-values.
Both approaches of zero initializing the whole struct (this PR) and explicitly initializing the padding fields generate the same DXBC.

fixes #1886

@teoxoy teoxoy merged commit 1869c68 into gfx-rs:master May 3, 2022
@teoxoy teoxoy deleted the zero-init-struct branch May 3, 2022 17:51
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] error X4555: cannot use casts on l-values
2 participants