14 .flat(Type::VEC2,
"outRectSize")
15 .flat(Type::VEC4,
"borderColor")
16 .flat(Type::VEC4,
"embossColor")
17 .flat(Type::VEC4,
"outRoundCorners")
19 .no_perspective(Type::VEC2,
"uvInterp")
20 .no_perspective(Type::VEC4,
"innerColor");
24 #define MAX_INSTANCE 6
28 .push_constant(Type::MAT4,
"ModelViewProjectionMatrix")
29 .push_constant(Type::VEC3,
"checkerColorAndSize")
30 .vertex_out(gpu_widget_iface)
31 .fragment_out(0, Type::VEC4,
"fragColor")
32 .vertex_source(
"gpu_shader_2D_widget_base_vert.glsl")
33 .fragment_source(
"gpu_shader_2D_widget_base_frag.glsl")
34 .additional_info(
"gpu_srgb_to_framebuffer_space");
37 .do_static_compilation(
true)
41 .define(
"widgetID",
"0")
43 .additional_info(
"gpu_shader_2D_widget_shared");
46 .do_static_compilation(
true)
47 .define(
"widgetID",
"gl_InstanceID")
49 .additional_info(
"gpu_shader_2D_widget_shared");
54 .do_static_compilation(
true)
55 .push_constant(Type::MAT4,
"ModelViewProjectionMatrix")
56 .push_constant(Type::VEC4,
"parameters", 4)
59 .vertex_out(gpu_widget_shadow_iface)
60 .fragment_out(0, Type::VEC4,
"fragColor")
61 .vertex_source(
"gpu_shader_2D_widget_shadow_vert.glsl")
62 .fragment_source(
"gpu_shader_2D_widget_shadow_frag.glsl");
typedef UINT(API *GHOST_WIN32_GetDpiForWindow)(HWND)
#define GPU_SHADER_INTERFACE_INFO(_interface, _inst_name)
#define GPU_SHADER_CREATE_INFO(_info)