Jump to content
  • Advertisement
Sign in to follow this  
_code_fly

HLSL function reference

This topic is 5041 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 read through the HLSL shader lanuage section of the DirectX9.0 SDK help file and it did not seem to be the same as the actual syntax used. Just wondering if anyone can clarify what's going on and hopefully direct me to a link with the real language reference. cheers

Share this post


Link to post
Share on other sites
Advertisement
er... whoops, it looks like I was wrong about the D3D9 help file.
I was confused by the following lines:

Quote:

Variables
Variables are declared as follows:

[static uniform extern shared volatile] [const]
type id [array_suffix] [: semantic] [= initializers] [annotations] [, id ...] ;


Share this post


Link to post
Share on other sites
Which part of those lines confuse you?

static const float foo [1][2][3] : COLOR = 0.0f < float min = 0.0f; float max = 1.0f; >;

xyzzy

Share this post


Link to post
Share on other sites
While I'm not sure about the annotations part, the [, id...] part just means that you can have more than one variable of the same type declared in the same statement, for example:

float4 position, texcoord, colour;


-Auron

Share this post


Link to post
Share on other sites
I thought that the annotations , might be
< float min = 0.0f; float max = 1.0f; >;

thanks for clarifying what [,id...]; meant.

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!