Blender V5.0
blender::gpu::GLSharedOrphanLists Class Reference

#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

Detailed Description

Definition at line 28 of file gl_context.hh.

Member Function Documentation

◆ orphans_clear()

void GLSharedOrphanLists::orphans_clear ( )

Member Data Documentation

◆ buffers

OrphanList blender::gpu::GLSharedOrphanLists::buffers

Definition at line 43 of file gl_context.hh.

Referenced by blender::gpu::GLContext::buffer_free(), and orphans_clear().

◆ programs

OrphanList blender::gpu::GLSharedOrphanLists::programs

Definition at line 45 of file gl_context.hh.

Referenced by orphans_clear(), and blender::gpu::GLContext::program_free().

◆ shaders

OrphanList blender::gpu::GLSharedOrphanLists::shaders

Definition at line 44 of file gl_context.hh.

Referenced by orphans_clear(), and blender::gpu::GLContext::shader_free().

◆ textures

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().


The documentation for this class was generated from the following files: