PDA

View Full Version : counting fragment calculation/frame



jos_t_tarigan
03-09-2011, 07:55 AM
hi,

i got question regarding glsl. is it possible to get how many fragment calculation/frame? its easy to find vertex calculation as simply as counting the vertices, but im curious how can how many times the fragment shader is executed for one frame of my scene. is it possible to do that?

kyle_
03-09-2011, 09:42 AM
Yes, with occlusion query.