Skip to content
This repository was archived by the owner on Jan 29, 2025. It is now read-only.

[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 subscribe to this conversation on GitHub. Already have an account? Sign in.
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