opengl - How to have multiple storage layouts in one Vertex Array Object? -
when storage layout, mean define glvertexattribpointer
. state saved in bound vao or buffer bound gl_array_buffer
?
you can't have multiple "storage layouts" in 1 vao. same reason can't have multiple textures in 1 texture object. or multiple buffers in 1 buffer object. , on.
vaos are "storage layout". if need more 1 layout, need more 1 vao.
or can modify existing vao's state; they're not immutable. kinda defeats purpose of vao.
Comments
Post a Comment