|
Blender V5.0
|
#include <gpu_shader_binder_internal.hh>
Public Member Functions | |
GPUShaderCache | |
| ~GPUShaderCache () | |
| GPUDisplayShader * | get (const GPUDisplayParameters &display_parameters) |
| GPUDisplayShader & | create_default () |
| void | clear () |
Definition at line 166 of file gpu_shader_binder_internal.hh.
| blender::ocio::internal::GPUShaderCache::~GPUShaderCache | ( | ) |
Definition at line 163 of file gpu_shader_binder.cc.
References clear().
| void blender::ocio::internal::GPUShaderCache::clear | ( | ) |
Remove all elements from the cache.
Definition at line 195 of file gpu_shader_binder.cc.
Referenced by ~GPUShaderCache().
| GPUDisplayShader & blender::ocio::internal::GPUShaderCache::create_default | ( | ) |
Create default-initialized GPUDisplayShader and put it to cache. The function ensures the cache has up to SHADER_CACHE_MAX_SIZE entries.
Definition at line 182 of file gpu_shader_binder.cc.
| GPUDisplayShader * blender::ocio::internal::GPUShaderCache::get | ( | const GPUDisplayParameters & | display_parameters | ) |
Get shader from the cache if exists, tag it as the most recently used for a faster lookup in the future.
Definition at line 168 of file gpu_shader_binder.cc.