-
Notifications
You must be signed in to change notification settings - Fork 245
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
Resource variables used in a global initializer function do not hoist correctly #4874
Labels
goal:quality & productivity
Quality issues and issues that impact our productivity coding day to day inside slang
kind:bug
something doesn't work like it should
Milestone
Comments
ArielG-NV
added
kind:bug
something doesn't work like it should
goal:quality & productivity
Quality issues and issues that impact our productivity coding day to day inside slang
labels
Aug 20, 2024
ArielG-NV
changed the title
Global initializers with resource variables do not hoist resource variables
Resource variables used in a global initializer does not hoist
Aug 20, 2024
ArielG-NV
changed the title
Resource variables used in a global initializer does not hoist
Resource variables used in a global initializer function do not hoist correctly
Aug 21, 2024
ArielG-NV
added a commit
to ArielG-NV/slang
that referenced
this issue
Aug 21, 2024
Fixes: shader-slang#4874 Hoist resource variables using a global initializer function in such a way that the initializer function is passed into every entry-point opposed to emitting a local-variable asignment in global scope.
Current plan to solve issue using IRGlobalConstants:
Limitations:
|
ArielG-NV
added
the
beyond-sprint
Label for issues which will be worked on but not completed during a sprint.
label
Sep 3, 2024
ArielG-NV
added a commit
to ArielG-NV/slang
that referenced
this issue
Sep 3, 2024
ArielG-NV
removed
the
beyond-sprint
Label for issues which will be worked on but not completed during a sprint.
label
Sep 4, 2024
kaizhangNV
pushed a commit
to kaizhangNV/slang
that referenced
this issue
Sep 18, 2024
kaizhangNV
added a commit
to kaizhangNV/slang
that referenced
this issue
Jan 14, 2025
csyonghe
added a commit
to csyonghe/slang
that referenced
this issue
Jan 16, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
goal:quality & productivity
Quality issues and issues that impact our productivity coding day to day inside slang
kind:bug
something doesn't work like it should
Problem:
Once compiled, code may leave assignments to resource variables in global scope with local variable assignments in global scope
Repro:
...
The text was updated successfully, but these errors were encountered: