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");
18 .vertex_in(0, Type::VEC4,
"color")
19 .vertex_in(1, Type::VEC4,
"outlineColor")
20 .vertex_in(2, Type::VEC2,
"pos")
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")
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)