|
Blender V4.5
|
#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 TexturePool & | get () |
Definition at line 20 of file GPU_texture_pool.hh.
| blender::gpu::TexturePool::~TexturePool | ( | ) |
Definition at line 18 of file gpu_texture_pool.cc.
References GPU_texture_free().
| GPUTexture * blender::gpu::TexturePool::acquire_texture | ( | int | width, |
| int | height, | ||
| eGPUTextureFormat | format, | ||
| eGPUTextureUsage | usage ) |
Definition at line 28 of file gpu_texture_pool.cc.
References G, G_DEBUG_GPU, GPU_texture_create_2d(), GPU_texture_format(), GPU_texture_height(), GPU_texture_usage(), GPU_texture_width(), i, and SNPRINTF.
Referenced by blender::draw::TextureFromPool::acquire(), blender::compositor::parallel_reduction_dispatch(), and blender::gpu::tests::test_texture_pool().
|
static |
Definition at line 100 of file gpu_texture_pool.cc.
References BLI_assert, GPU_context_active_get(), blender::gpu::Context::texture_pool, and blender::gpu::unwrap().
Referenced by blender::draw::TextureFromPool::acquire(), DRWContext::acquire_data(), DRW_custom_pipeline_end(), DRW_render_gpencil(), DRW_render_to_image(), blender::render::Compositor::execute(), blender::compositor::Result::free(), blender::compositor::parallel_reduction_dispatch(), blender::draw::TextureFromPool::release(), blender::draw::TextureFromPool::swap(), and blender::gpu::tests::test_texture_pool().
| 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().
| void blender::gpu::TexturePool::release_texture | ( | GPUTexture * | tmp_tex | ) |
Definition at line 65 of file gpu_texture_pool.cc.
Referenced by blender::compositor::Result::free(), blender::compositor::parallel_reduction_dispatch(), blender::draw::TextureFromPool::release(), and blender::gpu::tests::test_texture_pool().
| void blender::gpu::TexturePool::reset | ( | bool | force_free = false | ) |
Definition at line 81 of file gpu_texture_pool.cc.
References BLI_assert_msg, GPU_texture_free(), and i.
Referenced by DRWContext::acquire_data(), DRW_custom_pipeline_end(), DRW_render_gpencil(), DRW_render_to_image(), blender::render::Compositor::execute(), and blender::gpu::tests::test_texture_pool().
| 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().