Blender V4.3
blender::render::TexturePool Class Reference

Inherits blender::realtime_compositor::TexturePool.

Public Member Functions

virtual ~TexturePool ()
GPUTexture * allocate_texture (int2 size, eGPUTextureFormat format) override
void free_unused_and_reset ()
Public Member Functions inherited from blender::realtime_compositor::TexturePool
GPUTexture * acquire (int2 size, eGPUTextureFormat format)
void release (GPUTexture *texture)
void reset ()

Detailed Description

Render Texture Pool

TODO: should share pool with draw manager. It needs some globals initialization figured out there first.

Definition at line 51 of file render/intern/compositor.cc.

Constructor & Destructor Documentation

◆ ~TexturePool()

virtual blender::render::TexturePool::~TexturePool ( )
inlinevirtual

Definition at line 63 of file render/intern/compositor.cc.

References GPU_texture_free(), and texture.

Member Function Documentation

◆ allocate_texture()

◆ free_unused_and_reset()

void blender::render::TexturePool::free_unused_and_reset ( )
inline

Should be called after compositor evaluation to free unused textures and reset the texture pool.

Definition at line 102 of file render/intern/compositor.cc.

References GPU_texture_free(), and texture.


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