Skip to content

Conversation

@s-perron
Copy link
Collaborator

Some of the types that have been added to the vk namespace were being
added to the default namespace when compiling for DXIL. The if
conditions were such that they would fall through to a default case.

The solution is to explicitly add code that we should skip adding those
builtin types when the vk namespace is not defined.

Fixes #6646.

Some of the types that have been added to the vk namespace were being
added to the default namespace when compiling for DXIL. The if
conditions were such that they would fall through to a default case.

The solution is to explicitly add code that we should skip adding those
builtin types when the vk namespace is not defined.

Fixes microsoft#6646.
@s-perron s-perron requested a review from a team as a code owner June 18, 2024 13:38
@s-perron s-perron requested review from Keenuts and llvm-beanz June 18, 2024 13:38
@s-perron
Copy link
Collaborator Author

@llvm-beanz Do you have any thoughts on where the tests should go?

@s-perron
Copy link
Collaborator Author

@llvm-beanz Let me know if this seems reasonable.

@s-perron s-perron enabled auto-merge (squash) June 21, 2024 13:56
@s-perron s-perron merged commit 8b18659 into microsoft:main Jun 21, 2024
@s-perron s-perron deleted the i6646 branch September 12, 2024 13:43
SjMxr233 pushed a commit to ShaderHelper/DirectXShaderCompiler that referenced this pull request Jul 24, 2025
Some of the types that have been added to the vk namespace were being
added to the default namespace when compiling for DXIL. The if
conditions were such that they would fall through to a default case.

The solution is to explicitly add code that we should skip adding those
builtin types when the vk namespace is not defined.

Fixes microsoft#6646.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

integral_constant is exposed to the global namespace in DXC (trunk)

3 participants