Blender V5.3
blender::gpu::TexturePoolImpl Class Reference

#include <gpu_texture_pool_private.hh>

Inherits blender::gpu::TexturePoolBase.

Public Member Functions

 ~TexturePoolImpl () override
void release_texture (Texture *tex) override
void reset (bool force_free=false) override
void offset_users_count (Texture *tex, int offset) override
Public Member Functions inherited from blender::gpu::TexturePoolBase
Texture * acquire_texture_1d (int extent, int mip_len, TextureFormat format, eGPUTextureUsage usage, const char *name=nullptr) override
Texture * acquire_texture_1d_array (int extent, int layer_len, int mip_len, TextureFormat format, eGPUTextureUsage usage, const char *name=nullptr) override
Texture * acquire_texture_2d (int2 extent, int mip_len, TextureFormat format, eGPUTextureUsage usage, const char *name=nullptr) override
Texture * acquire_texture_2d_array (int2 extent, int layer_len, int mip_len, TextureFormat format, eGPUTextureUsage usage, const char *name=nullptr) override
Texture * acquire_texture_3d (int3 extent, int mip_len, TextureFormat format, eGPUTextureUsage usage, const char *name=nullptr) override
Texture * acquire_texture_cube (int extent, int mip_len, TextureFormat format, eGPUTextureUsage usage, const char *name=nullptr) override
Texture * acquire_texture_cube_array (int extent, int layer_len, int mip_len, TextureFormat format, eGPUTextureUsage usage, const char *name=nullptr) override
Public Member Functions inherited from blender::gpu::TexturePool
virtual ~TexturePool ()=default

Protected Member Functions

Texture * acquire_texture_impl (int3 extent, int mip_len, GPUTextureType type, TextureFormat format, eGPUTextureUsage usage=GPU_TEXTURE_USAGE_GENERAL, const char *name=nullptr) override

Additional Inherited Members

Static Public Member Functions inherited from blender::gpu::TexturePool
static TexturePool & get ()

Detailed Description

Old texture pool implementation, to be used while a backend-specific implementation is not yet available.

Definition at line 100 of file gpu_texture_pool_private.hh.

Constructor & Destructor Documentation

◆ ~TexturePoolImpl()

blender::gpu::TexturePoolImpl::~TexturePoolImpl ( )
override

Definition at line 29 of file gpu_texture_pool.cc.

References blender::GPU_texture_free().

Member Function Documentation

◆ acquire_texture_impl()

◆ offset_users_count()

void blender::gpu::TexturePoolImpl::offset_users_count ( Texture * tex,
int offset )
overridevirtual

Implements blender::gpu::TexturePool.

Definition at line 135 of file gpu_texture_pool.cc.

References BLI_assert_msg.

◆ release_texture()

void blender::gpu::TexturePoolImpl::release_texture ( Texture * tex)
overridevirtual

Implements blender::gpu::TexturePool.

Definition at line 127 of file gpu_texture_pool.cc.

References BLI_assert_msg.

◆ reset()

void blender::gpu::TexturePoolImpl::reset ( bool force_free = false)
overridevirtual

Implements blender::gpu::TexturePool.

Definition at line 143 of file gpu_texture_pool.cc.

References BLI_assert_msg, and blender::GPU_texture_free().


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