Blender  V3.3
COM_SetColorOperation.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2011 Blender Foundation. */
3 
4 #pragma once
5 
7 
8 namespace blender::compositor {
9 
15  private:
16  float color_[4];
17 
18  public:
23 
24  const float *get_constant_elem() override
25  {
26  return color_;
27  }
28 
29  float get_channel1()
30  {
31  return color_[0];
32  }
33  void set_channel1(float value)
34  {
35  color_[0] = value;
36  }
37  float get_channel2()
38  {
39  return color_[1];
40  }
41  void set_channel2(float value)
42  {
43  color_[1] = value;
44  }
45  float get_channel3()
46  {
47  return color_[2];
48  }
49  void set_channel3(float value)
50  {
51  color_[2] = value;
52  }
53  float get_channel4()
54  {
55  return color_[3];
56  }
57  void set_channel4(const float value)
58  {
59  color_[3] = value;
60  }
61  void set_channels(const float value[4])
62  {
63  copy_v4_v4(color_, value);
64  }
65 
69  void execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override;
70 
71  void determine_canvas(const rcti &preferred_area, rcti &r_area) override;
72 };
73 
74 } // namespace blender::compositor
MINLINE void copy_v4_v4(float r[4], const float a[4])
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint y
void determine_canvas(const rcti &preferred_area, rcti &r_area) override
void execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override
depth_tx sampler(1, ImageType::FLOAT_2D, "combined_tx") .sampler(2
ccl_global KernelShaderEvalInput ccl_global float * output