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: Fix lowering of arrayed clip/cull distance in mesh shaders. #2429

Merged
merged 3 commits into from
Dec 12, 2024

Conversation

HansKristian-Work
Copy link
Contributor

Fix #2411.

Super cursed, but it is what it is.

Aids some lowering cases we need to rewrite loads and stores.
Very cursed workaround since it's the only real case where we cannot
rely on IO lowering :(
DXC barfs on this in certain cases. out seems to work. Passing this
around as value type is very questionable to begin with and there's no
way to express true references in HLSL :\
@HansKristian-Work HansKristian-Work merged commit ebe2aa0 into main Dec 12, 2024
10 checks passed
@HansKristian-Work HansKristian-Work deleted the fix-2411 branch December 12, 2024 13:37
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: passing gl_ClipDistance into a function call causes invalid code-gen
1 participant