int a = 5;
if(a)
{
for(int i = 0;i < a: i++)
{
DoSomething();
}
}
Can you do the same in HLSL?If you could,it would be really convenient to both check if an effect is enabled to begin with and to serve as a parameter to the said effect.
int a = 5;
if(a)
{
for(int i = 0;i < a: i++)
{
DoSomething();
}
}
In C++ you can have:
int a = 5;
if(a)
{
for(int i = 0;i < a: i++)
{
DoSomething();
}
}
Can you do the same in HLSL?If you could,it would be really convenient to both check if an effect is enabled to begin with and to serve as a parameter to the said effect.