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

#include <GPU_texture_pool.hh>

Public Member Functions

 ~TexturePool ()
blender::gpu::Textureacquire_texture (int width, int height, blender::gpu::TextureFormat format, eGPUTextureUsage usage)
void release_texture (blender::gpu::Texture *tmp_tex)
void take_texture_ownership (blender::gpu::Texture *tex)
void give_texture_ownership (blender::gpu::Texture *tex)
void reset (bool force_free=false)

Static Public Member Functions

static TexturePoolget ()

Detailed Description

Definition at line 20 of file GPU_texture_pool.hh.

Constructor & Destructor Documentation

◆ ~TexturePool()

blender::gpu::TexturePool::~TexturePool ( )

Definition at line 18 of file gpu_texture_pool.cc.

References GPU_texture_free().

Member Function Documentation

◆ acquire_texture()

◆ get()

◆ give_texture_ownership()

void blender::gpu::TexturePool::give_texture_ownership ( blender::gpu::Texture * tex)

Definition at line 77 of file gpu_texture_pool.cc.

Referenced by blender::draw::TextureFromPool::swap().

◆ release_texture()

◆ reset()

◆ take_texture_ownership()

void blender::gpu::TexturePool::take_texture_ownership ( blender::gpu::Texture * tex)

Definition at line 72 of file gpu_texture_pool.cc.

Referenced by blender::draw::TextureFromPool::swap().


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