diff options
author | Omar Emara <mail@OmarEmara.dev> | 2022-01-31 21:06:04 +0300 |
---|---|---|
committer | Omar Emara <mail@OmarEmara.dev> | 2022-01-31 21:06:04 +0300 |
commit | 97c482ca427fcf1f174e31eeb2c6010ffd483f89 (patch) | |
tree | d1e11ef5f8c77b7a5c1a41ed1c9191003f452c59 /source/blender/draw/intern/draw_texture_pool.h | |
parent | 610b67e13ba1404d9b3196950b6dbbb552869cbb (diff) | |
parent | f7b03a79065daea2677088aa707fa6711d442679 (diff) |
Merge branch 'eevee-rewrite' into viewport-compositor
Diffstat (limited to 'source/blender/draw/intern/draw_texture_pool.h')
-rw-r--r-- | source/blender/draw/intern/draw_texture_pool.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_texture_pool.h b/source/blender/draw/intern/draw_texture_pool.h index f0b8f775c75..920d29b4cca 100644 --- a/source/blender/draw/intern/draw_texture_pool.h +++ b/source/blender/draw/intern/draw_texture_pool.h @@ -38,8 +38,15 @@ extern "C" { DRWTexturePool *DRW_texture_pool_create(void); void DRW_texture_pool_free(DRWTexturePool *pool); +/** + * Try to find a texture corresponding to params into the texture pool. + * If no texture was found, create one and add it to the pool. + */ GPUTexture *DRW_texture_pool_query( DRWTexturePool *pool, int width, int height, eGPUTextureFormat format, void *user); +/** + * Resets the user bits for each texture in the pool and delete unused ones. + */ void DRW_texture_pool_reset(DRWTexturePool *pool); #ifdef __cplusplus |