Sign in to follow this  
3drookie

does ATI card support CG API?

Recommended Posts

Evil Steve    2017
CG is OpenGL only I don't know if ATi supports it, but I don't see why not. For DirectX, there's High Level Shader Language (HLSL).

Share this post


Link to post
Share on other sites
Expandable    200
Quote:
Original post by Evil Steve
CG is OpenGL only I don't know if ATi supports it, but I don't see why not. For DirectX, there's High Level Shader Language (HLSL).


No, CG works under Direct3D and OpenGL and is supported by ATI as well (because all CG does is to "rewrite" the shader into HLSL/GLSL or OpenGL/D3D8/9 shader assembly code). However, CG shaders might run slower on ATI-hardware than "native" HLSL/GLSL shaders.

Share this post


Link to post
Share on other sites
Evil Steve    2017
Quote:
Original post by Expandable
Quote:
Original post by Evil Steve
CG is OpenGL only I don't know if ATi supports it, but I don't see why not. For DirectX, there's High Level Shader Language (HLSL).


No, CG works under Direct3D and OpenGL and is supported by ATI as well (because all CG does is to "rewrite" the shader into HLSL/GLSL or OpenGL/D3D8/9 shader assembly code). However, CG shaders might run slower on ATI-hardware than "native" HLSL/GLSL shaders.
Ah, I stand corrected. I was under the impression the Cg was HLSL for GL [smile]

Share this post


Link to post
Share on other sites
Saruman    4339
Quote:
Original post by Evil Steve
Ah, I stand corrected. I was under the impression the Cg was HLSL for GL [smile]

Nope that would be GLSL :)

Cg is an API agnostic shader platform by nVidia, which Microsoft than basically took and make small changes to in order to create HLSL.

Share this post


Link to post
Share on other sites
Mike2343    1202
Go with the features you like/want on the card and based off a few dozen reviews (some are paid so skewed, so balance it out).

The speed difference between GLSL/HLSL/Cg will be only a few precentage points off of each other overall (some features will be faster on card x then card y but overall, balance out).

I'm likely going to write all my scripts in Cg so I can use D3D and OGL depending on the platform. I will likely right a few specific ones for speed (heavily used ones) after profiling. But pick the card you like the best.

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