Blender V5.0
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 use_hdr_buffer = false
bool use_hdr_display = false
bool use_display_emulation = false
bool is_valid = false
gpu::Shadershader = nullptr
OCIO_GPUParameters parameters = {}
gpu::UniformBufparameters_buffer = nullptr
GPUTextures textures
GPUCurveMappping curve_mapping

Detailed Description

Definition at line 124 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 142 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 144 of file gpu_shader_binder_internal.hh.

◆ parameters_buffer

gpu::UniformBuf* blender::ocio::internal::GPUDisplayShader::parameters_buffer = nullptr

Definition at line 145 of file gpu_shader_binder_internal.hh.

Referenced by ~GPUDisplayShader().

◆ shader

gpu::Shader* 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

◆ use_display_emulation

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

◆ use_hdr_buffer

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

◆ use_hdr_display

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

◆ view

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

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