|
Blender V5.0
|
#include <gl_context.hh>
Public Member Functions | |
Safe object deletion | |
GPU objects can be freed when the context is not bound. In this case we delay the deletion until the context is bound again. | |
| void | orphans_clear () |
Public Attributes | |
| OrphanList | textures |
| OrphanList | buffers |
| OrphanList | shaders |
| OrphanList | programs |
Definition at line 28 of file gl_context.hh.
| void GLSharedOrphanLists::orphans_clear | ( | ) |
Definition at line 209 of file gl_context.cc.
References BLI_assert, buffers, blender::gpu::GLContext::get(), handles, i, programs, shaders, size(), and textures.
| OrphanList blender::gpu::GLSharedOrphanLists::buffers |
Definition at line 43 of file gl_context.hh.
Referenced by blender::gpu::GLContext::buffer_free(), and orphans_clear().
| OrphanList blender::gpu::GLSharedOrphanLists::programs |
Definition at line 45 of file gl_context.hh.
Referenced by orphans_clear(), and blender::gpu::GLContext::program_free().
| OrphanList blender::gpu::GLSharedOrphanLists::shaders |
Definition at line 44 of file gl_context.hh.
Referenced by orphans_clear(), and blender::gpu::GLContext::shader_free().
| OrphanList blender::gpu::GLSharedOrphanLists::textures |
Shaders, Buffers and textures are shared across context.
Definition at line 42 of file gl_context.hh.
Referenced by orphans_clear(), and blender::gpu::GLContext::texture_free().