14 single_value_ =
false;
27 if (memory_proxy_ !=
nullptr) {
87 float output[4],
float x,
float y,
float dx[2],
float dy[2])
94 const float uv[2] = {
x,
y};
95 const float deriv[2][2] = {{dx[0], dx[1]}, {dy[0], dy[1]}};
104 if (
this == read_operation) {
113 if (memory_proxy_ !=
nullptr) {
BLI_INLINE int BLI_rcti_size_y(const struct rcti *rct)
void BLI_rcti_init(struct rcti *rect, int xmin, int xmax, int ymin, int ymax)
BLI_INLINE int BLI_rcti_size_x(const struct rcti *rct)
_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 set_resolution(unsigned int resolution[2])
set the resolution of this executiongroup
void read(float *result, int x, int y, MemoryBufferExtend extend_x=MemoryBufferExtend::Clip, MemoryBufferExtend extend_y=MemoryBufferExtend::Clip)
void read_bilinear(float *result, float x, float y, MemoryBufferExtend extend_x=MemoryBufferExtend::Clip, MemoryBufferExtend extend_y=MemoryBufferExtend::Clip) const
void readEWA(float *result, const float uv[2], const float derivatives[2][2])
ExecutionGroup * get_executor() const
get the ExecutionGroup that can be scheduled to calculate a certain chunk.
WriteBufferOperation * get_write_buffer_operation() const
get the WriteBufferOperation that is responsible for writing to this MemoryProxy
MemoryBuffer * get_buffer()
get the allocated memory
unsigned int get_height() const
void set_canvas(const rcti &canvas_area)
void add_output_socket(DataType datatype)
unsigned int get_width() const
NodeOperationFlags flags_
void set_width(unsigned int width)
void set_height(unsigned int height)
void determine_canvas(const rcti &preferred_area, rcti &r_area) override
void execute_pixel_extend(float output[4], float x, float y, PixelSampler sampler, MemoryBufferExtend extend_x, MemoryBufferExtend extend_y)
bool determine_depending_area_of_interest(rcti *input, ReadBufferOperation *read_operation, rcti *output) override
void execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void read_resolution_from_write_buffer()
void * initialize_tile_data(rcti *rect) override
void update_memory_buffer()
void execute_pixel_filtered(float output[4], float x, float y, float dx[2], float dy[2]) override
calculate a single pixel using an EWA filter
MemoryProxy * get_memory_proxy() const
ReadBufferOperation(DataType datatype)
NodeOperation to write to a tile.
void determine_canvas(const rcti &preferred_area, rcti &r_area) override
bool is_single_value() const
depth_tx sampler(1, ImageType::FLOAT_2D, "combined_tx") .sampler(2
DataType
possible data types for sockets
ccl_global KernelShaderEvalInput ccl_global float * output
ccl_global KernelShaderEvalInput * input
bool is_read_buffer_operation