diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-05-16 03:59:25 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-05-16 21:27:52 +0300 |
commit | 7a029f4e00cc9a9f6a938cf701e6ed4c91115264 (patch) | |
tree | a315770fc2fbd5807ba262e9cbdcc179877d4125 /source/blender/gpu/GPU_viewport.h | |
parent | dc01586b4063142a3736993eb4a6e4fec893bed1 (diff) |
GPUViewport: Add a Texture Pool to reuse textures across engines.
Diffstat (limited to 'source/blender/gpu/GPU_viewport.h')
-rw-r--r-- | source/blender/gpu/GPU_viewport.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/gpu/GPU_viewport.h b/source/blender/gpu/GPU_viewport.h index e5acc024ff4..2b2a07f50b7 100644 --- a/source/blender/gpu/GPU_viewport.h +++ b/source/blender/gpu/GPU_viewport.h @@ -101,6 +101,9 @@ void *GPU_viewport_texture_list_get(GPUViewport *viewport); void GPU_viewport_size_get(const GPUViewport *viewport, int size[2]); void GPU_viewport_size_set(GPUViewport *viewport, const int size[2]); +/* Texture pool */ +GPUTexture *GPU_viewport_texture_pool_query(GPUViewport *viewport, void *engine, int width, int height, int channels, int format); + bool GPU_viewport_cache_validate(GPUViewport *viewport, unsigned int hash); /* debug */ |