PDA

View Full Version : int to float conversion on GPU



letslearn
04-06-2012, 02:34 PM
http://www.opengl.org/wiki/Common_Mistakes#Depth_Buffer_Precision

There is a sentence here that says:
"The GL driver will copy the depth buffer from the graphics card and it will use the CPU to convert it to floating point values."

Is the GPU really incapable of converting ints to a floating point value, or am I taking this sentence out of context?

Alfonse Reinheart
04-06-2012, 03:58 PM
The DMA part of the GPU, the part that actually copies memory back and forth, probably can't.

letslearn
04-07-2012, 12:49 PM
What about converting between floats and its in GLSL shaders?

Alfonse Reinheart
04-07-2012, 01:01 PM
Um, what about it? The sentence you quoted was talking about copies from the depth buffer.

letslearn
04-07-2012, 01:15 PM
Can the processors on the GPU do it?

V-man
04-08-2012, 03:24 AM
Yup