Blender  V3.3
COM_TextureOperation.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 
6 #include "BLI_listbase.h"
8 #include "DNA_texture_types.h"
9 #include "MEM_guardedalloc.h"
10 
11 #include "RE_pipeline.h"
12 #include "RE_texture.h"
13 
14 namespace blender::compositor {
15 
22  private:
23  Tex *texture_;
24  const RenderData *rd_;
25  SocketReader *input_size_;
26  SocketReader *input_offset_;
27  struct ImagePool *pool_;
28  bool scene_color_manage_;
29 
30  protected:
34  void determine_canvas(const rcti &preferred_area, rcti &r_area) override;
35 
40 
41  public:
42  void execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override;
43 
44  void set_texture(Tex *texture)
45  {
46  texture_ = texture;
47  }
48  void init_execution() override;
49  void deinit_execution() override;
50  void set_render_data(const RenderData *rd)
51  {
52  rd_ = rd;
53  }
54  void set_scene_color_manage(bool scene_color_manage)
55  {
56  scene_color_manage_ = scene_color_manage;
57  }
58 
60  const rcti &area,
61  Span<MemoryBuffer *> inputs) override;
62 };
63 
65  public:
67 };
69  public:
71  void execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override;
72 
74  const rcti &area,
75  Span<MemoryBuffer *> inputs) override;
76 };
77 
78 } // namespace blender::compositor
_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
Read Guarded memory(de)allocation.
a MemoryBuffer contains access to the data of a chunk
NodeOperation contains calculation logic.
void execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void update_memory_buffer_partial(MemoryBuffer *output, const rcti &area, Span< MemoryBuffer * > inputs) override
void execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void update_memory_buffer_partial(MemoryBuffer *output, const rcti &area, Span< MemoryBuffer * > inputs) override
void set_scene_color_manage(bool scene_color_manage)
void determine_canvas(const rcti &preferred_area, rcti &r_area) override
depth_tx sampler(1, ImageType::FLOAT_2D, "combined_tx") .sampler(2
ccl_global KernelShaderEvalInput ccl_global float * output
static void area(int d1, int d2, int e1, int e2, float weights[2])
static bNodeSocketTemplate inputs[]