Differential D15898 Diff 56015 source/blender/draw/engines/overlay/shaders/infos/overlay_extra_info.hh
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/overlay/shaders/infos/overlay_extra_info.hh
| Show First 20 Lines • Show All 139 Lines • ▼ Show 20 Lines | GPU_SHADER_INTERFACE_INFO(overlay_extra_point_iface, "") | ||||
| .flat(Type::VEC4, "fillColor") | .flat(Type::VEC4, "fillColor") | ||||
| .flat(Type::VEC4, "outlineColor"); | .flat(Type::VEC4, "outlineColor"); | ||||
| GPU_SHADER_CREATE_INFO(overlay_extra_point) | GPU_SHADER_CREATE_INFO(overlay_extra_point) | ||||
| .do_static_compilation(true) | .do_static_compilation(true) | ||||
| /* TODO(fclem): Move the vertex shader to Overlay engine and remove this bypass. */ | /* TODO(fclem): Move the vertex shader to Overlay engine and remove this bypass. */ | ||||
| .define("blender_srgb_to_framebuffer_space(a)", "a") | .define("blender_srgb_to_framebuffer_space(a)", "a") | ||||
| .vertex_in(0, Type::VEC3, "pos") | .vertex_in(0, Type::VEC3, "pos") | ||||
| .push_constant(Type::VEC4, "color") | .push_constant(Type::VEC4, "ucolor") | ||||
| .vertex_out(overlay_extra_point_iface) | .vertex_out(overlay_extra_point_iface) | ||||
| .fragment_out(0, Type::VEC4, "fragColor") | .fragment_out(0, Type::VEC4, "fragColor") | ||||
| .vertex_source("overlay_extra_point_vert.glsl") | .vertex_source("overlay_extra_point_vert.glsl") | ||||
| .fragment_source("overlay_point_varying_color_varying_outline_aa_frag.glsl") | .fragment_source("overlay_point_varying_color_varying_outline_aa_frag.glsl") | ||||
| .additional_info("draw_modelmat", "draw_globals"); | .additional_info("draw_modelmat", "draw_globals"); | ||||
| GPU_SHADER_CREATE_INFO(overlay_extra_point_clipped) | GPU_SHADER_CREATE_INFO(overlay_extra_point_clipped) | ||||
| .do_static_compilation(true) | .do_static_compilation(true) | ||||
| .additional_info("overlay_extra_point", "drw_clipped"); | .additional_info("overlay_extra_point", "drw_clipped"); | ||||
| GPU_SHADER_INTERFACE_INFO(overlay_extra_loose_point_iface, "").smooth(Type::VEC4, "finalColor"); | GPU_SHADER_INTERFACE_INFO(overlay_extra_loose_point_iface, "").smooth(Type::VEC4, "finalColor"); | ||||
| GPU_SHADER_CREATE_INFO(overlay_extra_loose_point) | GPU_SHADER_CREATE_INFO(overlay_extra_loose_point) | ||||
| .do_static_compilation(true) | .do_static_compilation(true) | ||||
| .vertex_in(0, Type::VEC3, "pos") | .vertex_in(0, Type::VEC3, "pos") | ||||
| .push_constant(Type::VEC4, "color") | .push_constant(Type::VEC4, "ucolor") | ||||
| .vertex_out(overlay_extra_loose_point_iface) | .vertex_out(overlay_extra_loose_point_iface) | ||||
| .fragment_out(0, Type::VEC4, "fragColor") | .fragment_out(0, Type::VEC4, "fragColor") | ||||
| .fragment_out(1, Type::VEC4, "lineOutput") | .fragment_out(1, Type::VEC4, "lineOutput") | ||||
| .vertex_source("overlay_extra_loose_point_vert.glsl") | .vertex_source("overlay_extra_loose_point_vert.glsl") | ||||
| .fragment_source("overlay_extra_loose_point_frag.glsl") | .fragment_source("overlay_extra_loose_point_frag.glsl") | ||||
| .additional_info("draw_modelmat", "draw_globals"); | .additional_info("draw_modelmat", "draw_globals"); | ||||
| GPU_SHADER_CREATE_INFO(overlay_extra_loose_point_clipped) | GPU_SHADER_CREATE_INFO(overlay_extra_loose_point_clipped) | ||||
| ▲ Show 20 Lines • Show All 79 Lines • ▼ Show 20 Lines | |||||
| GPU_SHADER_INTERFACE_INFO(overlay_image_iface, "").smooth(Type::VEC2, "uvs"); | GPU_SHADER_INTERFACE_INFO(overlay_image_iface, "").smooth(Type::VEC2, "uvs"); | ||||
| GPU_SHADER_CREATE_INFO(overlay_image) | GPU_SHADER_CREATE_INFO(overlay_image) | ||||
| .do_static_compilation(true) | .do_static_compilation(true) | ||||
| .push_constant(Type::BOOL, "depthSet") | .push_constant(Type::BOOL, "depthSet") | ||||
| .push_constant(Type::BOOL, "isCameraBackground") | .push_constant(Type::BOOL, "isCameraBackground") | ||||
| .push_constant(Type::BOOL, "imgPremultiplied") | .push_constant(Type::BOOL, "imgPremultiplied") | ||||
| .push_constant(Type::BOOL, "imgAlphaBlend") | .push_constant(Type::BOOL, "imgAlphaBlend") | ||||
| .push_constant(Type::VEC4, "color") | .push_constant(Type::VEC4, "ucolor") | ||||
| .vertex_in(0, Type::VEC3, "pos") | .vertex_in(0, Type::VEC3, "pos") | ||||
| .vertex_out(overlay_image_iface) | .vertex_out(overlay_image_iface) | ||||
| .sampler(0, ImageType::FLOAT_2D, "imgTexture") | .sampler(0, ImageType::FLOAT_2D, "imgTexture") | ||||
| .fragment_out(0, Type::VEC4, "fragColor") | .fragment_out(0, Type::VEC4, "fragColor") | ||||
| .vertex_source("overlay_image_vert.glsl") | .vertex_source("overlay_image_vert.glsl") | ||||
| .fragment_source("overlay_image_frag.glsl") | .fragment_source("overlay_image_frag.glsl") | ||||
| .additional_info("draw_mesh"); | .additional_info("draw_mesh"); | ||||
| Show All 30 Lines | |||||
| /* -------------------------------------------------------------------- */ | /* -------------------------------------------------------------------- */ | ||||
| /** \name Particle | /** \name Particle | ||||
| * \{ */ | * \{ */ | ||||
| GPU_SHADER_INTERFACE_INFO(overlay_particle_iface, "").flat(Type::VEC4, "finalColor"); | GPU_SHADER_INTERFACE_INFO(overlay_particle_iface, "").flat(Type::VEC4, "finalColor"); | ||||
| GPU_SHADER_CREATE_INFO(overlay_particle) | GPU_SHADER_CREATE_INFO(overlay_particle) | ||||
| .sampler(0, ImageType::FLOAT_1D, "weightTex") | .sampler(0, ImageType::FLOAT_1D, "weightTex") | ||||
| .push_constant(Type::VEC4, "color") /* Draw-size packed in alpha. */ | .push_constant(Type::VEC4, "ucolor") /* Draw-size packed in alpha. */ | ||||
| .vertex_in(0, Type::VEC3, "part_pos") | .vertex_in(0, Type::VEC3, "part_pos") | ||||
| .vertex_in(1, Type::VEC4, "part_rot") | .vertex_in(1, Type::VEC4, "part_rot") | ||||
| .vertex_in(2, Type::FLOAT, "part_val") | .vertex_in(2, Type::FLOAT, "part_val") | ||||
| .vertex_out(overlay_particle_iface) | .vertex_out(overlay_particle_iface) | ||||
| .vertex_source("overlay_particle_vert.glsl") | .vertex_source("overlay_particle_vert.glsl") | ||||
| .additional_info("draw_globals"); | .additional_info("draw_globals"); | ||||
| GPU_SHADER_CREATE_INFO(overlay_particle_dot) | GPU_SHADER_CREATE_INFO(overlay_particle_dot) | ||||
| Show All 27 Lines | |||||