Blender V4.5
blender::ocio::internal::GPUDisplayShader Class Reference

#include <gpu_shader_binder_internal.hh>

Inherits blender::NonCopyable, and blender::NonMovable.

Public Member Functions

GPUDisplayShader
 ~GPUDisplayShader ()
bool matches (const GPUDisplayParameters &display_parameters) const
bool initialize_common ()

Public Attributes

std::string from_colorspace
std::string view
std::string display
std::string look
bool use_curve_mapping = false
bool is_valid = false
GPUShader * shader = nullptr
OCIO_GPUParameters parameters = {}
GPUUniformBuf * parameters_buffer = nullptr
GPUTextures textures
GPUCurveMappping curve_mapping

Detailed Description

Definition at line 122 of file gpu_shader_binder_internal.hh.

Constructor & Destructor Documentation

◆ ~GPUDisplayShader()

blender::ocio::internal::GPUDisplayShader::~GPUDisplayShader ( )

Member Function Documentation

◆ initialize_common()

bool blender::ocio::internal::GPUDisplayShader::initialize_common ( )

Initialize common parts of this object: resources needed for both fall-back and OpenColorIO implementations.

If the resources creation has failed sets is_valid to false, otherwise keeps is_valid unchanged.

Returns true if the resources have been successfully allocated.

Definition at line 135 of file gpu_shader_binder.cc.

References curve_mapping, is_valid, textures, and use_curve_mapping.

Referenced by blender::ocio::GPUShaderBinder::display_bind(), and blender::ocio::GPUShaderBinder::to_scene_linear_bind().

◆ matches()

Member Data Documentation

◆ curve_mapping

GPUCurveMappping blender::ocio::internal::GPUDisplayShader::curve_mapping

◆ display

std::string blender::ocio::internal::GPUDisplayShader::display

◆ from_colorspace

std::string blender::ocio::internal::GPUDisplayShader::from_colorspace

◆ is_valid

◆ look

std::string blender::ocio::internal::GPUDisplayShader::look

◆ parameters

OCIO_GPUParameters blender::ocio::internal::GPUDisplayShader::parameters = {}

Definition at line 139 of file gpu_shader_binder_internal.hh.

◆ parameters_buffer

GPUUniformBuf* blender::ocio::internal::GPUDisplayShader::parameters_buffer = nullptr

Definition at line 140 of file gpu_shader_binder_internal.hh.

Referenced by ~GPUDisplayShader().

◆ shader

GPUShader* blender::ocio::internal::GPUDisplayShader::shader = nullptr

◆ textures

GPUTextures blender::ocio::internal::GPUDisplayShader::textures

◆ use_curve_mapping

bool blender::ocio::internal::GPUDisplayShader::use_curve_mapping = false

◆ view

std::string blender::ocio::internal::GPUDisplayShader::view

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