Blender V4.5
blender::gpu::TexturePool Class Reference

#include <GPU_texture_pool.hh>

Public Member Functions

 ~TexturePool ()
GPUTexture * acquire_texture (int width, int height, eGPUTextureFormat format, eGPUTextureUsage usage)
void release_texture (GPUTexture *tmp_tex)
void take_texture_ownership (GPUTexture *tex)
void give_texture_ownership (GPUTexture *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 ( GPUTexture * tex)

Definition at line 76 of file gpu_texture_pool.cc.

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

◆ release_texture()

void blender::gpu::TexturePool::release_texture ( GPUTexture * tmp_tex)

◆ reset()

◆ take_texture_ownership()

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

Definition at line 71 of file gpu_texture_pool.cc.

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


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