Say In C++ I want to parameterize the way I want my .hlsl shader to be compiled based on various things happening.
Can I set a preprocessor keyword in C++ say MSAASamples_
to be defined in the HLSL file?
hlsl:
// ...
#ifndef MSAASamples_
#define MSAASamples_ 1
#endif
// ...