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

Fix redundant decorations in IRParam #4964

Merged

Conversation

jkwak-work
Copy link
Collaborator

Closes #4922

The problem was that same decorations were added to an IRParam multiple times while running specializeIRForEntryPoint().

cloneGlobalValueWithCodeCommon() kept cloning decorations for the params that were already processed.

Closes shader-slang#4922

The problem was that same decorations were added to an IRParam multiple
times while running `specializeIRForEntryPoint()`.

`cloneGlobalValueWithCodeCommon()` kept cloning decorations for the
params that were already processed.
@jkwak-work jkwak-work added the pr: non-breaking PRs without breaking changes label Aug 29, 2024
@jkwak-work jkwak-work self-assigned this Aug 29, 2024
@jkwak-work jkwak-work merged commit 12137e9 into shader-slang:master Aug 30, 2024
12 checks passed
@jkwak-work jkwak-work deleted the fix/emit_nointerplocation_only_once branch August 30, 2024 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: non-breaking PRs without breaking changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Loop inside shader causes duplication of nointerpolation keyword in generated HLSL code
2 participants