Blender V5.3
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
5#ifdef GPU_SHADER
6# pragma once
7# include "gpu_shader_compat.hh"
8#endif
9
11
12GPU_SHADER_CREATE_INFO(compositor_ellipse_mask_shared)
13LOCAL_GROUP_SIZE(16, 16)
14PUSH_CONSTANT(int2, display_size)
15PUSH_CONSTANT(int2, data_offset)
16PUSH_CONSTANT(float2, location)
17PUSH_CONSTANT(float2, radius)
18PUSH_CONSTANT(float, cos_angle)
19PUSH_CONSTANT(float, sin_angle)
20SAMPLER(0, sampler2D, base_mask_tx)
21SAMPLER(1, sampler2D, mask_value_tx)
22IMAGE(0, SFLOAT_16, write, image2D, output_mask_img)
23COMPUTE_SOURCE("compositor_ellipse_mask.glsl")
25
26/* TODO(fclem): deduplicate. */
27#define CMP_NODE_MASKTYPE_ADD 0
28#define CMP_NODE_MASKTYPE_SUBTRACT 1
29#define CMP_NODE_MASKTYPE_MULTIPLY 2
30#define CMP_NODE_MASKTYPE_NOT 3
31
32GPU_SHADER_CREATE_INFO(compositor_ellipse_mask_add)
33ADDITIONAL_INFO(compositor_ellipse_mask_shared)
37
38GPU_SHADER_CREATE_INFO(compositor_ellipse_mask_subtract)
39ADDITIONAL_INFO(compositor_ellipse_mask_shared)
43
44GPU_SHADER_CREATE_INFO(compositor_ellipse_mask_multiply)
45ADDITIONAL_INFO(compositor_ellipse_mask_shared)
49
50GPU_SHADER_CREATE_INFO(compositor_ellipse_mask_not)
51ADDITIONAL_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