fatarms
fatarms

Reputation: 543

GPU Usage in a non-GLSL OpenGL Application

I read from the OpenGL Wiki that current Modern GPUs are only programmable using shaders.

Modern GPUs no longer support fixed function. Everything is done with shaders. In order to preserve compatibility, the GL driver generates a shader that simulates the fixed function. It is recommended that all new modern programs use shaders. New users need not learn fixed function related operations of GL such as glLight, glMaterial, glTexEnv and many others.

Is that mean that if we are not implementing shader/GLSL in OpenGL, we actually don't access the GPU at all and only do the computation using the CPU?

Upvotes: 3

Views: 377

Answers (2)

dfan
dfan

Reputation: 5814

Everything is done with shaders. In order to preserve compatibility, the GL driver generates a shader that simulates the fixed function.

These shaders still run on the GPU (as all shaders do). They are just automatically made for you.

Upvotes: 6

Axel Gneiting
Axel Gneiting

Reputation: 5393

No. It means that all fixed function stuff is automatically converted to shaders by the drivers.

Upvotes: 11

Related Questions