Jump to content
  • Advertisement
Sign in to follow this  
3drookie

does ATI card support CG API?

This topic is 4467 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

Advertisement
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
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
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
hehe, thanks guys, i am going to buy a new video card and yet dont konw which company to follow, nVidia or ATI, any advice?

Share this post


Link to post
Share on other sites
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
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
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!