Blender V5.3
blender::compositor::GPUShaderCreator Class Reference

Inherits OCIO_NAMESPACE::GpuShaderCreator.

Public Member Functions

OCIO::GpuShaderCreatorRcPtr clone () const override
void setTextureMaxWidth (uint) override
uint getTextureMaxWidth () const noexcept override
bool addUniform (const char *name, const DoubleGetter &get_double) override
bool addUniform (const char *name, const BoolGetter &get_bool) override
bool addUniform (const char *name, const Float3Getter &get_float3) override
bool addUniform (const char *name, const SizeGetter &get_size, const VectorFloatGetter &get_vector_float) override
bool addUniform (const char *name, const SizeGetter &get_size, const VectorIntGetter &get_vector_int) override
void addTexture (const char *texture_name, const char *sampler_name, uint width, uint height, TextureType channel, OCIO::Interpolation interpolation, const float *values) override
void add3DTexture (const char *texture_name, const char *sampler_name, uint size, OCIO::Interpolation interpolation, const float *values) override
void createShaderText (const char *, const char *helper_methods, const char *function_header, const char *function_body, const char *function_footer) override
void finalize () override
gpu::Shader * bind_shader_and_resources ()
void unbind_shader_and_resources ()
const char * input_sampler_name ()
const char * output_image_name ()
 ~GPUShaderCreator () override

Static Public Member Functions

static std::shared_ptr< GPUShaderCreator > Create (ResultPrecision precision)

Detailed Description

Definition at line 57 of file ocio_color_space_conversion_shader.cc.

Constructor & Destructor Documentation

◆ ~GPUShaderCreator()

blender::compositor::GPUShaderCreator::~GPUShaderCreator ( )
inlineoverride

Member Function Documentation

◆ add3DTexture()

void blender::compositor::GPUShaderCreator::add3DTexture ( const char * texture_name,
const char * sampler_name,
uint size,
OCIO::Interpolation interpolation,
const float * values )
inlineoverride

◆ addTexture()

void blender::compositor::GPUShaderCreator::addTexture ( const char * texture_name,
const char * sampler_name,
uint width,
uint height,
TextureType channel,
OCIO::Interpolation interpolation,
const float * values )
inlineoverride

◆ addUniform() [1/5]

bool blender::compositor::GPUShaderCreator::addUniform ( const char * name,
const BoolGetter & get_bool )
inlineoverride

◆ addUniform() [2/5]

bool blender::compositor::GPUShaderCreator::addUniform ( const char * name,
const DoubleGetter & get_double )
inlineoverride

◆ addUniform() [3/5]

bool blender::compositor::GPUShaderCreator::addUniform ( const char * name,
const Float3Getter & get_float3 )
inlineoverride

◆ addUniform() [4/5]

bool blender::compositor::GPUShaderCreator::addUniform ( const char * name,
const SizeGetter & get_size,
const VectorFloatGetter & get_vector_float )
inlineoverride

Definition at line 150 of file ocio_color_space_conversion_shader.cc.

References BLI_assert_unreachable.

◆ addUniform() [5/5]

bool blender::compositor::GPUShaderCreator::addUniform ( const char * name,
const SizeGetter & get_size,
const VectorIntGetter & get_vector_int )
inlineoverride

Definition at line 177 of file ocio_color_space_conversion_shader.cc.

References BLI_assert_unreachable.

◆ bind_shader_and_resources()

◆ clone()

OCIO::GpuShaderCreatorRcPtr blender::compositor::GPUShaderCreator::clone ( ) const
inlineoverride

Definition at line 68 of file ocio_color_space_conversion_shader.cc.

◆ Create()

std::shared_ptr< GPUShaderCreator > blender::compositor::GPUShaderCreator::Create ( ResultPrecision precision)
inlinestatic

◆ createShaderText()

void blender::compositor::GPUShaderCreator::createShaderText ( const char * ,
const char * helper_methods,
const char * function_header,
const char * function_body,
const char * function_footer )
inlineoverride

Definition at line 299 of file ocio_color_space_conversion_shader.cc.

◆ finalize()

◆ getTextureMaxWidth()

uint blender::compositor::GPUShaderCreator::getTextureMaxWidth ( ) const
inlineoverridenoexcept

◆ input_sampler_name()

const char * blender::compositor::GPUShaderCreator::input_sampler_name ( )
inline

Definition at line 398 of file ocio_color_space_conversion_shader.cc.

Referenced by finalize().

◆ output_image_name()

const char * blender::compositor::GPUShaderCreator::output_image_name ( )
inline

Definition at line 403 of file ocio_color_space_conversion_shader.cc.

Referenced by finalize().

◆ setTextureMaxWidth()

void blender::compositor::GPUShaderCreator::setTextureMaxWidth ( uint )
inlineoverride

Definition at line 74 of file ocio_color_space_conversion_shader.cc.

◆ unbind_shader_and_resources()

void blender::compositor::GPUShaderCreator::unbind_shader_and_resources ( )
inline

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