|
Blender V5.0
|
#include <GPU_texture_pool.hh>
Public Member Functions | |
| ~TexturePool () | |
| blender::gpu::Texture * | acquire_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 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().
| blender::gpu::Texture * blender::gpu::TexturePool::acquire_texture | ( | int | width, |
| int | height, | ||
| blender::gpu::TextureFormat | 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, name, and SNPRINTF.
Referenced by blender::draw::TextureFromPool::acquire(), blender::compositor::parallel_reduction_dispatch(), and blender::gpu::tests::test_texture_pool().
|
static |
Definition at line 101 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 | ( | blender::gpu::Texture * | tex | ) |
Definition at line 77 of file gpu_texture_pool.cc.
Referenced by blender::draw::TextureFromPool::swap().
| void blender::gpu::TexturePool::release_texture | ( | blender::gpu::Texture * | tmp_tex | ) |
Definition at line 66 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 82 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 | ( | blender::gpu::Texture * | tex | ) |
Definition at line 72 of file gpu_texture_pool.cc.
Referenced by blender::draw::TextureFromPool::swap().