Blender V5.0
blender::ocio::FallbackGPUShaderBinder Class Reference

#include <fallback_gpu_shader_binder.hh>

Inherits blender::ocio::GPUShaderBinder.

Protected Member Functions

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

Additional Inherited Members

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
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 Configconfig_

Detailed Description

Definition at line 11 of file fallback_gpu_shader_binder.hh.

Member Function Documentation

◆ construct_display_shader()

void blender::ocio::FallbackGPUShaderBinder::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 76 of file fallback_gpu_shader_binder.cc.

References blender::ocio::GPUShaderBinder::create_gpu_shader(), and blender::ocio::internal::GPUDisplayShader::is_valid.

◆ construct_scene_linear_shader()

void blender::ocio::FallbackGPUShaderBinder::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 89 of file fallback_gpu_shader_binder.cc.

References blender::ocio::GPUShaderBinder::create_gpu_shader(), and blender::ocio::internal::GPUDisplayShader::is_valid.

◆ GPUShaderBinder()

blender::ocio::GPUShaderBinder::GPUShaderBinder ( const Config & config)
explicitprotected

Definition at line 73 of file gpu_shader_binder.cc.

References texture().


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