Jump to content

  • Log In with Google      Sign In   
  • Create Account


Why use Uber Shaders? Why not one giant shader with some ifs.


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
21 replies to this topic

#21 MJP   Moderators   -  Reputation: 10917

Like
0Likes
Like

Posted 29 April 2012 - 01:24 PM

When Cg and HLSL were first created they were pretty much identical. Since D3D10 however they have diverged quite a bit.

Sponsor:

#22 Hodgman   Moderators   -  Reputation: 29488

Like
0Likes
Like

Posted 30 April 2012 - 01:31 AM

So Cg is similar to HLSL?

HLSL and Cg are almost exactly the same language -- both Microsoft and nVidia cooperated to create a "high level shading language" together. When they were done, MS published their version under the name "DirectX HLSL" and nVidia published theirs under the name "nVidia Cg", but they were both almost the same language (with different supporting tools/APIs/extensions).

Edited by Hodgman, 30 April 2012 - 01:47 AM.





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS