Blender Git Loki
Git Commits -> Revision 358732c
Revision 358732c by Mike Erwin (GPU_data_request) March 20, 2015, 22:16 (GMT) |
OpenGL batched geometry API (experimental) Clean slate design, with some overlap with existing Blender APIs. Using GPUx_ prefix to avoid confusion with current GPU_ files. - specify vertex attribs - buffer in main memory & VRAM - build element lists of points, lines, triangles - draw these --^ - state tracking (fairly basic) - lots of error & bounds checking!!! can turn this off The idea is to handle things like VBOs, VAOs, other useful extensions automatically so users of this API don't have to work hard to get it right every time. This also lets us turn things on/off in one place for debugging & perf measurements. - - - - Checking this code in now to give it a home & test on multiple systems. It�??s not being used yet and will probably evolve quite a bit as our needs become clearer. |
Commit Details:
Full Hash: 358732c463d041bc1b83c7c07cf2d2cab605d224
Parent Commit: ded1d86
Lines Changed: +1148, -0
9 Added Paths:
/source/blender/gpu/GPUx_draw.h (+19, -0) (View)
/source/blender/gpu/GPUx_element.h (+24, -0) (View)
/source/blender/gpu/GPUx_state.h (+49, -0) (View)
/source/blender/gpu/GPUx_vbo.h (+65, -0) (View)
/source/blender/gpu/intern/gpux_draw.c (+131, -0) (View)
/source/blender/gpu/intern/gpux_element.c (+221, -0) (View)
/source/blender/gpu/intern/GPUx_element_private.h (+27, -0) (View)
/source/blender/gpu/intern/gpux_state.c (+167, -0) (View)
/source/blender/gpu/intern/gpux_vbo.c (+445, -0) (View)
/source/blender/gpu/GPUx_element.h (+24, -0) (View)
/source/blender/gpu/GPUx_state.h (+49, -0) (View)
/source/blender/gpu/GPUx_vbo.h (+65, -0) (View)
/source/blender/gpu/intern/gpux_draw.c (+131, -0) (View)
/source/blender/gpu/intern/gpux_element.c (+221, -0) (View)
/source/blender/gpu/intern/GPUx_element_private.h (+27, -0) (View)
/source/blender/gpu/intern/gpux_state.c (+167, -0) (View)
/source/blender/gpu/intern/gpux_vbo.c (+445, -0) (View)