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] Fix array constructor return type (for FXC) #1914

Merged
merged 1 commit into from
May 13, 2022

Conversation

teoxoy
Copy link
Member

@teoxoy teoxoy commented May 12, 2022

According to microsoft/DirectXShaderCompiler#1808 the syntax used for returning arrays (which was added in #1814) is specific to DXC. This PR changes it to use a typedef which is supported by both FXC and DXC.

fixes #1913

@teoxoy
Copy link
Member Author

teoxoy commented May 12, 2022

We should probably add HLSL validation via FXC to CI as well (since that's what wgpu uses right now).

@kvark kvark merged commit ab2806e into gfx-rs:master May 13, 2022
@teoxoy teoxoy deleted the fix-hlsl-array-constructor branch May 13, 2022 07:05
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] hlsl compilation error for global array initialiser
2 participants