• Advertisement
Sign in to follow this  

Is there f4tex2D() funtion in HLSL?

This topic is 3975 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 all, There are some functions such as f4tex2D() and f4texRECT() funciton in Cg, then are there such functions in HLSL? It seems that i cannot find them in HLSL. If not, how do i simulate these functions in HLSL? Thanks in advance!

Share this post


Link to post
Share on other sites
Advertisement
Judging by the name, "f4tex2D()" samples a texture and returns a float4.

If that's what it is, then HLSL's tex2D() does just that, returns a colour stored in a float4 given a texture co-ordinate and texture sampler.

Share this post


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

  • Advertisement