PDA

View Full Version : Retrieve number of samples allocated by driver



debonair
02-22-2013, 01:36 AM
I am working on application in which i am using multisampled textures. Now, i want to retrieve number of actual samples allocated by driver. for e.g. when my application asks for a 1X multisampled texture then the driver legally allocates a 2X multisampled texture how can i retrieve this number legally allocated by driver? I have searched corresponding argument with glGet but did not find the one.

randall
02-22-2013, 03:25 AM
Look at GL_ARB_internalformat_query2 extension.

arekkusu
02-22-2013, 11:45 AM
GetTexLevelParameter(...TEXTURE_SAMPLES...), as per ARB_texture_multisample or GL3.2.

This works the same way as GetRenderbufferParameter(...RENDERBUFFER_SAMPLES.. .) from 2005.