Blender V5.0
blender::ocio::internal::GPUShaderCache Class Reference

#include <gpu_shader_binder_internal.hh>

Public Member Functions

GPUShaderCache
 ~GPUShaderCache ()
GPUDisplayShaderget (const GPUDisplayParameters &display_parameters)
GPUDisplayShadercreate_default ()
void clear ()

Detailed Description

Definition at line 166 of file gpu_shader_binder_internal.hh.

Constructor & Destructor Documentation

◆ ~GPUShaderCache()

blender::ocio::internal::GPUShaderCache::~GPUShaderCache ( )

Definition at line 163 of file gpu_shader_binder.cc.

References clear().

Member Function Documentation

◆ 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().

◆ create_default()

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.

◆ get()

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.


The documentation for this class was generated from the following files: