URL: https://graphicscomputing.fr/cgp/reference/opengl_gpu_buffer/
Description: Common base of the VBO and the EBO - OpenGL id, number of elements, target and memory layout.

# opengl_gpu_buffer

Common base of the VBO and the EBO - OpenGL id, number of elements, target and memory layout.

Fields:

- `GLuint id` - OpenGL id of the buffer, 0 when it is not allocated.
- `GLuint size` - Number of elements in the buffer (a vec3 or a uint3 counts as one element), 0 when empty.
- `GLenum type` - OpenGL target of the buffer, GL_ARRAY_BUFFER for a VBO and GL_ELEMENT_ARRAY_BUFFER for an EBO.
- `opengl_gpu_buffer_details details` - Allocated size in bytes, number of components per element (2, 3 or 4) and component type (GL_FLOAT), used to describe the buffer to the VAO.
