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