13 .flat(Type::FLOAT,
"discardFac")
14 .flat(Type::FLOAT,
"lineWidth")
15 .flat(Type::VEC2,
"outRectSize")
16 .flat(Type::VEC4,
"borderColor")
17 .flat(Type::VEC4,
"embossColor")
18 .flat(Type::VEC4,
"outRoundCorners")
19 .no_perspective(Type::FLOAT,
"butCo")
20 .no_perspective(Type::VEC2,
"uvInterp")
21 .no_perspective(Type::VEC4,
"innerColor");
29 .push_constant(Type::MAT4,
"ModelViewProjectionMatrix")
30 .push_constant(Type::VEC3,
"checkerColorAndSize")
31 .vertex_out(gpu_widget_iface)
32 .fragment_out(0, Type::VEC4,
"fragColor")
33 .vertex_source(
"gpu_shader_2D_widget_base_vert.glsl")
34 .fragment_source(
"gpu_shader_2D_widget_base_frag.glsl")
35 .additional_info(
"gpu_srgb_to_framebuffer_space");
38 .do_static_compilation(
true)
42 .define(
"widgetID",
"0")
44 .additional_info(
"gpu_shader_2D_widget_shared");
47 .do_static_compilation(
true)
48 .define(
"widgetID",
"gl_InstanceID")
50 .additional_info(
"gpu_shader_2D_widget_shared");
53 .smooth(Type::FLOAT,
"shadowFalloff")
54 .smooth(Type::FLOAT,
"innerMask");
57 .do_static_compilation(
true)
58 .push_constant(Type::MAT4,
"ModelViewProjectionMatrix")
59 .push_constant(Type::VEC4,
"parameters", 4)
60 .push_constant(Type::FLOAT,
"alpha")
61 .vertex_in(0, Type::UINT,
"vflag")
62 .vertex_out(gpu_widget_shadow_iface)
63 .fragment_out(0, Type::VEC4,
"fragColor")
64 .vertex_source(
"gpu_shader_2D_widget_shadow_vert.glsl")
65 .fragment_source(
"gpu_shader_2D_widget_shadow_frag.glsl");
#define GPU_SHADER_INTERFACE_INFO(_interface, _inst_name)
#define GPU_SHADER_CREATE_INFO(_info)