Blender V5.3
overlay_gsplat.bsl.hh File Reference

Go to the source code of this file.

Classes

struct  overlay::PipelineResources
struct  overlay::viewer_attribute::Resources
struct  overlay::viewer_attribute::VertOut
struct  overlay::viewer_attribute::FragOut
struct  overlay::wireframe::Resources
struct  overlay::wireframe::VertOut
struct  overlay::wireframe::FragOut
struct  overlay::edit_vert::Resources
struct  overlay::edit_vert::VertOut
struct  overlay::edit_vert::FragOut
struct  overlay::depth_only::Resources
struct  overlay::depth_only::VertOut
struct  overlay::outline_prepass::Resources
struct  overlay::outline_prepass::VertOut
struct  overlay::outline_prepass::FragOut

Namespaces

namespace  overlay
namespace  overlay::viewer_attribute
namespace  overlay::wireframe
namespace  overlay::wireframe::detail
namespace  overlay::edit_vert
namespace  overlay::depth_only
namespace  overlay::outline_prepass

Functions

void overlay::viewer_attribute::vert (const PipelineResources &pipe, const Resources &srt, const Clipping &clip, const draw::gsplat::ShapeResource &shape, const draw::Model &models, const draw::Infos &, const draw::View &views, const draw::Resource &res_id, const int vert_id, const int inst_index, float4 &out_position, float(&clip_distances)[6], VertOut &v_out)
void overlay::viewer_attribute::frag (const Resources &srt, const VertOut &v_in, FragOut &f_out)
float3 overlay::wireframe::detail::hsv_to_rgb (float3 hsv)
void overlay::wireframe::detail::wire_color_get (float3 &rim_col, float3 &wire_col, const ObjectInfos &ob_infos, const Resources &srt)
void overlay::wireframe::detail::wire_object_color_get (float3 &rim_col, float3 &wire_col, const ObjectInfos &ob_infos, const Resources &srt)
void overlay::wireframe::vert (const PipelineResources &pipe, const Resources &srt, const draw::gsplat::ShapeResource &shape, const draw::Model &models, const draw::Infos &infos, const draw::View &views, const draw::Select &, const draw::Resource &res_id, const draw::ResourceCustomID &custom_id, const int vert_id, const int inst_index, float4 &out_position, float &out_pointsize, const Clipping &clip, float(&clip_distances)[6], VertOut &v_out)
void overlay::wireframe::frag (const PipelineResources &pipe, const Resources &, draw::Select &select, const float2 &in_pointcoord, const float4 frag_coordinate, const VertOut &v_in, FragOut &f_out)
void overlay::edit_vert::vert (const PipelineResources &pipe, const Resources &srt, const draw::gsplat::ShapeResource &shape, const draw::Resource &res_id, const draw::Model &models, const draw::View &views, const int vert_id, const int inst_index, float4 &out_position, float &out_pointsize, const Clipping &clip, float(&clip_distances)[6], VertOut &v_out)
void overlay::edit_vert::frag (const float2 &in_pointcoord, const VertOut &v_in, FragOut &f_out)
void overlay::depth_only::vert (const PipelineResources &pipe, const Resources &, const draw::gsplat::ShapeResource &shape, const draw::View &views, const draw::Model &models, const draw::Select &, const draw::Resource &res_id, const draw::ResourceCustomID &custom_id, const int vert_id, const int inst_index, float4 &out_position, const Clipping &clip, float(&clip_distances)[6], VertOut &v_out)
void overlay::depth_only::frag (const PipelineResources &pipe, const Resources &srt, draw::Select &select, const float4 frag_coord, const bool in_frontfacing, const VertOut &v_in)
uint overlay::outline_colorid_get (ObjectInfos ob_infos, bool is_transform)
void overlay::outline_prepass::vert (const PipelineResources &pipe, const Resources &srt, const draw::gsplat::ShapeResource &shape, const draw::View &views, const draw::Model &models, const draw::Infos &infos, const draw::Resource &res_id, const draw::ResourceCustomID &custom_id, const int vert_id, const int inst_index, float4 &out_position, const Clipping &clip, float(&clip_distances)[6], VertOut &v_out)
void overlay::outline_prepass::frag (const VertOut &v_in, FragOut &f_out)

Variables

PipelineGraphic overlay::viewer_attribute_gsplat (viewer_attribute::vert, viewer_attribute::frag, ClippingConstant{.use_clipping=false}, PipelineResources{.selectable=false})
PipelineGraphic overlay::viewer_attribute_gsplat_clipped (viewer_attribute::vert, viewer_attribute::frag, ClippingConstant{.use_clipping=true}, PipelineResources{.selectable=false})
PipelineGraphic overlay::edit_gsplat (edit_vert::vert, edit_vert::frag, ClippingConstant{.use_clipping=false}, PipelineResources{.selectable=false})
PipelineGraphic overlay::edit_gsplat_clipped (edit_vert::vert, edit_vert::frag, ClippingConstant{.use_clipping=true}, PipelineResources{.selectable=false})
PipelineGraphic overlay::depth_gsplat (depth_only::vert, depth_only::frag, ClippingConstant{.use_clipping=false}, PipelineResources{.selectable=false})
PipelineGraphic overlay::depth_gsplat_selectable (depth_only::vert, depth_only::frag, ClippingConstant{.use_clipping=false}, PipelineResources{.selectable=true})
PipelineGraphic overlay::depth_gsplat_clipped (depth_only::vert, depth_only::frag, ClippingConstant{.use_clipping=true}, PipelineResources{.selectable=false})
PipelineGraphic overlay::depth_gsplat_selectable_clipped (depth_only::vert, depth_only::frag, ClippingConstant{.use_clipping=true}, PipelineResources{.selectable=true})
PipelineGraphic overlay::outline_prepass_gsplat (outline_prepass::vert, outline_prepass::frag, ClippingConstant{.use_clipping=false}, PipelineResources{.selectable=false})
PipelineGraphic overlay::outline_prepass_gsplat_selectable (outline_prepass::vert, outline_prepass::frag, ClippingConstant{.use_clipping=false}, PipelineResources{.selectable=true})
PipelineGraphic overlay::outline_prepass_gsplat_clipped (outline_prepass::vert, outline_prepass::frag, ClippingConstant{.use_clipping=true}, PipelineResources{.selectable=false})
PipelineGraphic overlay::outline_prepass_gsplat_selectable_clipped (outline_prepass::vert, outline_prepass::frag, ClippingConstant{.use_clipping=true}, PipelineResources{.selectable=true})
PipelineGraphic overlay::wireframe_gsplat (wireframe::vert, wireframe::frag, ClippingConstant{.use_clipping=false}, PipelineResources{.selectable=false})
PipelineGraphic overlay::wireframe_gsplat_selectable (wireframe::vert, wireframe::frag, ClippingConstant{.use_clipping=false}, PipelineResources{.selectable=true})
PipelineGraphic overlay::wireframe_gsplat_clipped (wireframe::vert, wireframe::frag, ClippingConstant{.use_clipping=true}, PipelineResources{.selectable=false})
PipelineGraphic overlay::wireframe_gsplat_selectable_clipped (wireframe::vert, wireframe::frag, ClippingConstant{.use_clipping=true}, PipelineResources{.selectable=true})

Detailed Description

Overlay shaders for all gsplat-related overlay draws: viewer attribute, outline prepass, depth-only, edit vertices, and wireframe.

Note
Many of the fragment shaders here are duplicates or partial reimplementations of GLSL shaders. These can be deduplicated during the BSL-porting of the overlay shaders.

Definition in file overlay_gsplat.bsl.hh.