Get link-time constants using the reflection API #5664
Replies: 3 comments 3 replies
-
Can you give us examples with shader code? |
Beta Was this translation helpful? Give feedback.
-
@tangent-vector Do you have an answer for the immediate question about discovering "WITH_NORMAL_MAP" in reflection so a module can be generated with an override for that constant defined? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm currently replacing my old shader builder which used custom #pragma directives to declare static switches as shader permutations.
I was wondering if it was possible to get a similar behavior using link-time constants, but currently I haven't found a way to retrieve it using reflection and the documentation doesn't mention it, so maybe this feature doesn't exists yet ?
Also if you see a better way of handling my use case that would be great too.
Thanks ! :)
Beta Was this translation helpful? Give feedback.
All reactions