Sign in to follow this  
skyman_cn

Is there f4tex2D() funtion in HLSL?

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this