Blender V5.0
compositor_ellipse_mask_infos.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
6
7GPU_SHADER_CREATE_INFO(compositor_ellipse_mask_shared)
9PUSH_CONSTANT(int2, domain_size)
10PUSH_CONSTANT(float2, location)
11PUSH_CONSTANT(float2, radius)
12PUSH_CONSTANT(float, cos_angle)
13PUSH_CONSTANT(float, sin_angle)
14SAMPLER(0, sampler2D, base_mask_tx)
15SAMPLER(1, sampler2D, mask_value_tx)
16IMAGE(0, SFLOAT_16, write, image2D, output_mask_img)
17COMPUTE_SOURCE("compositor_ellipse_mask.glsl")
19
20/* TODO(fclem): deduplicate. */
21#define CMP_NODE_MASKTYPE_ADD 0
22#define CMP_NODE_MASKTYPE_SUBTRACT 1
23#define CMP_NODE_MASKTYPE_MULTIPLY 2
24#define CMP_NODE_MASKTYPE_NOT 3
25
26GPU_SHADER_CREATE_INFO(compositor_ellipse_mask_add)
27ADDITIONAL_INFO(compositor_ellipse_mask_shared)
31
32GPU_SHADER_CREATE_INFO(compositor_ellipse_mask_subtract)
33ADDITIONAL_INFO(compositor_ellipse_mask_shared)
37
38GPU_SHADER_CREATE_INFO(compositor_ellipse_mask_multiply)
39ADDITIONAL_INFO(compositor_ellipse_mask_shared)
43
44GPU_SHADER_CREATE_INFO(compositor_ellipse_mask_not)
45ADDITIONAL_INFO(compositor_ellipse_mask_shared)
#define CMP_NODE_MASKTYPE_MULTIPLY
#define CMP_NODE_MASKTYPE_ADD
#define CMP_NODE_MASKTYPE_NOT
#define CMP_NODE_MASKTYPE_SUBTRACT
#define GPU_SHADER_CREATE_INFO(_info)
#define GPU_SHADER_CREATE_END()
#define SAMPLER(slot, type, name)
#define COMPILATION_CONSTANT(type, name, value)
#define ADDITIONAL_INFO(info_name)
#define PUSH_CONSTANT(type, name)
#define LOCAL_GROUP_SIZE(...)
#define IMAGE(slot, format, qualifiers, type, name)
#define COMPUTE_SOURCE(filename)
#define DO_STATIC_COMPILATION()
ImageBase< float, 2 > image2D
SamplerBase< float, 2 > sampler2D