Blender
V5.3
source
blender
imbuf
opencolorio
intern
libocio
libocio_gpu_shader_binder.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2025 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
5
#pragma once
6
7
#include "
MEM_guardedalloc.h
"
8
9
#include "
OCIO_gpu_shader_binder.hh
"
10
11
#include "
../opencolorio.hh
"
12
13
namespace
blender::ocio
{
14
15
class
LibOCIOGPUShaderBinder
:
public
GPUShaderBinder
{
16
public
:
17
using
GPUShaderBinder::GPUShaderBinder
;
18
19
MEM_CXX_CLASS_ALLOC_FUNCS
(
"LibOCIOGPUShaderBinder"
);
20
21
private
:
22
void
construct_shader_for_processors(
23
internal::GPUDisplayShader
&display_shader,
24
const
OCIO_NAMESPACE::ConstProcessorRcPtr &processor_to_scene_linear,
25
const
OCIO_NAMESPACE::ConstProcessorRcPtr &processor_to_display,
26
Span
<std::array<StringRefNull, 2>> additional_defines)
const
;
27
28
protected
:
29
void
construct_display_shader
(
internal::GPUDisplayShader
&display_shader)
const override
;
30
void
construct_scene_linear_shader
(
internal::GPUDisplayShader
&display_shader)
const override
;
31
};
32
33
}
// namespace blender::ocio
MEM_guardedalloc.h
Read Blender memory allocation and freeing.
OCIO_gpu_shader_binder.hh
blender::Span
Definition
BLI_span.hh:74
blender::ocio::GPUShaderBinder::GPUShaderBinder
GPUShaderBinder(const Config &config)
Definition
gpu_shader_binder.cc:396
blender::ocio::LibOCIOGPUShaderBinder
Definition
libocio_gpu_shader_binder.hh:15
blender::ocio::LibOCIOGPUShaderBinder::construct_scene_linear_shader
void construct_scene_linear_shader(internal::GPUDisplayShader &display_shader) const override
Definition
libocio_gpu_shader_binder.cc:249
blender::ocio::LibOCIOGPUShaderBinder::construct_display_shader
void construct_display_shader(internal::GPUDisplayShader &display_shader) const override
Definition
libocio_gpu_shader_binder.cc:230
blender::ocio::LibOCIOGPUShaderBinder::GPUShaderBinder
GPUShaderBinder(const Config &config)
Definition
gpu_shader_binder.cc:396
blender::ocio::LibOCIOGPUShaderBinder::MEM_CXX_CLASS_ALLOC_FUNCS
MEM_CXX_CLASS_ALLOC_FUNCS("LibOCIOGPUShaderBinder")
blender::ocio::internal::GPUDisplayShader
Definition
gpu_shader_binder_internal.hh:122
blender::ocio
Definition
BLF_api.hh:39
opencolorio.hh
Generated on
for Blender by
doxygen
1.18.0