• Advertisement
Sign in to follow this  

the step function in hlsl

This topic is 4215 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi I cant get the little step function to work. I try like: int p = step(1,0); its not working!!

Share this post


Link to post
Share on other sites
Advertisement
What's the problem? Does it even run at all? What's the result of the step function? Are you sure it's not just optimizing it out because you don't use 'p'? What's the point of a step function that takes a constant input in, and produces a constant output (0)?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement