Sign in to follow this  
coderchris

OpenGL query for graphics card vendor in OGL?

Recommended Posts

Hello, Im wondering how or if its even possible to somehow detect the graphics card's vendor (ATI, NVidia, ect..) using opengl (or maybe some other, easy to use API)? Along the same lines, is there any way to check if shader model 3+ is supported? Thanks

Share this post


Link to post
Share on other sites
SM 3 isn't really an OGL concept. You can get information about supported shader functionality by examining the ogl version and extension strings. What do you want to do with the info?

Share this post


Link to post
Share on other sites
Quote:

Yeah, use glGetString(GL_VENDOR)


Ah, thanks that works great

For the SM3, i just want to make sure things like dynamic branching, 4 render targets, and large shader lengths are supported

Share this post


Link to post
Share on other sites
Well there's glGetString with GL_SHADING_LANGUAGE_VERSION. IIRC large shader lengths and dynamic branching are required by GLSL. There's probably a seperate extension you need to test for for multiple render targets, but I don't know what it is off the top of my head.

Edit: I think you want to test for the ARB_draw_buffers extension.

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