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] Uniform variable in entry point params gets compiled to input variable #2253

Closed
rdb opened this issue May 31, 2020 · 0 comments · Fixed by #2254
Closed

[HLSL] Uniform variable in entry point params gets compiled to input variable #2253

rdb opened this issue May 31, 2020 · 0 comments · Fixed by #2254

Comments

@rdb
Copy link
Contributor

rdb commented May 31, 2020

Running this command:

glslangValidator -e main -H test.vert.hlsl

On this shader:

void main(uniform float4 somevar,
          out float4 l_position : SV_Position) {

  l_position = somevar;
}

Results in somevar being compiled as Input instead of being added either as UniformConstant or being added to the $Global block:

...
              16:             TypePointer Input 7(fvec4)
     17(somevar):     16(ptr) Variable Input
...

This is a major blocker for us.

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 a pull request may close this issue.

1 participant