Shader API - which should I choose? HLSL, Cg or GLSL?
I alwyas thought CG = HLSL? they just change the name for directx? I can't remember where I heard that so im probably mistaken
-THACO
-THACO
Quote:Original post by Mercenareythe easiest answer is: because belonts to nvidia.
why isn't it portable?
Quote:Original post by stromaQuote:Original post by Mercenareythe easiest answer is: because belonts to nvidia.
why isn't it portable?
It is perfectly portable across API's, OS's, and graphics cards. As I said earlier though, portability across the SM3 range of cards will probably suffer in the future as the asm interfaces won't be updated. Just because it's created and managed by nVidia is totally irrelevant.
Cg is more like HLSL for OpenGL...nVidia actually recommend HLSL over Cg for DX apps. For OpenGL apps its upto you, GLSL is just a new face to Cg on NV drivers.
But, i use Cg :D ... its more consistant atm, but i will change to GLSL/HLSL later, GLSL is just too inconsistant between graphics cards atm, probably in its major release (like 1.2 or something) i will convert back.
-Twixn-
But, i use Cg :D ... its more consistant atm, but i will change to GLSL/HLSL later, GLSL is just too inconsistant between graphics cards atm, probably in its major release (like 1.2 or something) i will convert back.
-Twixn-
The actual Cg language is exactly the same as HLSL. And CgFX is pretty much the same as D3DX .FX framework.
There are a few differences between Cg and HLSL...but its only a few of the library functions.
-Twixn-
-Twixn-
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement