-
Notifications
You must be signed in to change notification settings - Fork 187
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
NormalMapFiltering.ps.glsl not compiling #101
Comments
Where is the user definition? Is if in a Slang file or user code? |
User code. I'm using |
The fact that we aren't emitting a definition in user code is worrying: we are supposed to emit those unconditionally. My best theory right now is that the semantic checking is deciding the user definition is a redeclaration, but in that case we should still emit whatever redeclaration has a body. |
My understanding is that this issue has been worked around in the original codbase. I don't think this is something Slang should support long-term (interfaces and generics should cover most of what we want), so I'd like to close this as a "will not fix" if possible. |
Closing this as "will not fix." We will not support the case of a Slang file declaring a function that then gets defined in user HLSL or GLSL. The basic rules of Slang will be:
|
Effect/NormalMapFiltering sample (default settings)
The error I'm getting is from
glslang
-perturbNormal
is missing the definition. The definition is actually missing from the GLSL string we send even though_MS_USER_NORMAL_MAPPING
is defined.The text was updated successfully, but these errors were encountered: