Blender V4.3
gpu_shader_keyframe_shape_info.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2022 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
10
11GPU_SHADER_INTERFACE_INFO(keyframe_shape_iface, "")
12 .flat(Type::VEC4, "finalColor")
13 .flat(Type::VEC4, "finalOutlineColor")
14 .flat(Type::VEC4, "radii")
15 .flat(Type::VEC4, "thresholds")
16 .flat(Type::UINT, "finalFlags");
17
18GPU_SHADER_CREATE_INFO(gpu_shader_keyframe_shape)
19 .typedef_source("GPU_shader_shared.hh")
20 .vertex_in(0, Type::VEC4, "color")
21 .vertex_in(1, Type::VEC4, "outlineColor")
22 .vertex_in(2, Type::VEC2, "pos")
23 .vertex_in(3, Type::FLOAT, "size")
24 .vertex_in(4, Type::UINT, "flags")
25 .vertex_out(keyframe_shape_iface)
26 .fragment_out(0, Type::VEC4, "fragColor")
27 .push_constant(Type::MAT4, "ModelViewProjectionMatrix")
28 .push_constant(Type::VEC2, "ViewportSize")
29 .push_constant(Type::FLOAT, "outline_scale")
30 .vertex_source("gpu_shader_keyframe_shape_vert.glsl")
31 .fragment_source("gpu_shader_keyframe_shape_frag.glsl")
32 .do_static_compilation(true);
#define GPU_SHADER_INTERFACE_INFO(_interface, _inst_name)
#define GPU_SHADER_CREATE_INFO(_info)