Blender  V3.3
COM_SetVectorOperation.cc
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2011 Blender Foundation. */
3 
5 
6 namespace blender::compositor {
7 
9 {
11  flags_.is_set_operation = true;
12 }
13 
15  float /*x*/,
16  float /*y*/,
17  PixelSampler /*sampler*/)
18 {
19  output[0] = vector_.x;
20  output[1] = vector_.y;
21  output[2] = vector_.z;
22 }
23 
24 void SetVectorOperation::determine_canvas(const rcti &preferred_area, rcti &r_area)
25 {
26  r_area = preferred_area;
27 }
28 
29 } // namespace blender::compositor
void add_output_socket(DataType datatype)
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
@ Vector
Vector data type.
ccl_global KernelShaderEvalInput ccl_global float * output