opengl - FBO depth and stencil render buffer attachments -


the opengl wiki says in order use stencil buffer attachment depth buffer in fbo 1 needs create render buffer format of type gl_depth24_stencil8, seems gl_stencil_indexx aren't implemented.

what don't understand whether such buffer depth buffer if set gl_depth_stencil_attachment? or should still create separate depth render buffer formats (gl_depth_componentxx)?

it's not stencil_index formats aren't "implemented". it's specification not require implementation consider them complete. implementations allowed reject combination of image formats whatever reasons deems fit, unless stick list of required image formats.

a depth/stencil image has depth , stencil in it, red/green image has both red , green in it. yes, attach same image gl_depth_attachment , gl_stencil_attacment points. or use gl_depth_stencil_attachment shorthand both.


Comments