Blender V5.3
blender::ocio::LibOCIOGPUShaderBinder Class Reference

#include <libocio_gpu_shader_binder.hh>

Inherits blender::ocio::GPUShaderBinder.

Public Member Functions

 MEM_CXX_CLASS_ALLOC_FUNCS ("LibOCIOGPUShaderBinder")
 GPUShaderBinder (const Config &config)
Public Member Functions inherited from blender::ocio::GPUShaderBinder
 GPUShaderBinder (const Config &config)
virtual ~GPUShaderBinder ()
bool display_bind (const GPUDisplayParameters &display_parameters) const
bool to_scene_linear_bind (StringRefNull from_colorspace, bool use_predivide) const
void unbind () const
void clear_caches () const

Protected Member Functions

void construct_display_shader (internal::GPUDisplayShader &display_shader) const override
void construct_scene_linear_shader (internal::GPUDisplayShader &display_shader) const override

Additional Inherited Members

Static Protected Member Functions inherited from blender::ocio::GPUShaderBinder
static bool create_gpu_shader (internal::GPUDisplayShader &display_shader, StringRefNull fragment_source, Span< std::array< StringRefNull, 2 > > additional_defines)
Protected Attributes inherited from blender::ocio::GPUShaderBinder
const Config & config_

Detailed Description

Definition at line 15 of file libocio_gpu_shader_binder.hh.

Member Function Documentation

◆ construct_display_shader()

void blender::ocio::LibOCIOGPUShaderBinder::construct_display_shader ( internal::GPUDisplayShader & display_shader) const
overrideprotectedvirtual

Construct display shader matching requested parameters. The shader has its cache variables (input color space name, view, display, look, whether curve mapping is used or not).

Implements blender::ocio::GPUShaderBinder.

Definition at line 230 of file libocio_gpu_shader_binder.cc.

References blender::ocio::GPUShaderBinder::config_, blender::ocio::LibOCIOConfig::get_ocio_config(), and blender::ocio::internal::GPUDisplayShader::is_valid.

Referenced by MEM_CXX_CLASS_ALLOC_FUNCS().

◆ construct_scene_linear_shader()

void blender::ocio::LibOCIOGPUShaderBinder::construct_scene_linear_shader ( internal::GPUDisplayShader & display_shader) const
overrideprotectedvirtual

Construct display shader which will only perform the to-scene-linear part of conversion, leaving the to-display a no-op function.

Implements blender::ocio::GPUShaderBinder.

Definition at line 249 of file libocio_gpu_shader_binder.cc.

References blender::ocio::GPUShaderBinder::config_, blender::ocio::LibOCIOConfig::get_ocio_config(), and blender::ocio::internal::GPUDisplayShader::is_valid.

Referenced by MEM_CXX_CLASS_ALLOC_FUNCS().

◆ GPUShaderBinder()

Definition at line 79 of file gpu_shader_binder.cc.

◆ MEM_CXX_CLASS_ALLOC_FUNCS()

blender::ocio::LibOCIOGPUShaderBinder::MEM_CXX_CLASS_ALLOC_FUNCS ( "LibOCIOGPUShaderBinder" )

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