- Home /
conditional pragma target
how can I set pragma target depending by I'm using DirectX11 or not? I've done:
#if defined(SHADER_API_D3D11_9X)
#pragma target 5.0
#else
#pragma target 3.0
#endif
but my shader reports I'm using SM4.0 any solution please?
Comment
Your answer

Follow this Question
Related Questions
How to force the compilation of a shader in Unity? 5 Answers
What does #pragma multi_compile_particles do? 1 Answer
Multiple tex2D commands in fragment shader needed, is there a workaround? 0 Answers
Custom ambient lighting color in a Cg shader 2 Answers
Can I read `CGPROGRAM` `#define` constants in `.cs` at runtime? 0 Answers