Blender V5.3
builtin Namespace Reference

Namespaces

namespace  annotation
namespace  area_borders
namespace  display_fallback
namespace  icon
namespace  image
namespace  keyframe
namespace  mipmaps
namespace  polyline
namespace  socket
namespace  text
namespace  widget
namespace  window_borders

Classes

struct  Checker
struct  ClipPlanes
struct  ColorSpace
struct  Dashed
struct  DiagStripes
struct  FragOut
struct  Simple
struct  SimpleClip
struct  SimpleLit
struct  SimplePoint
struct  VertIn
struct  VertInPoint
struct  VertOutDashed
struct  VertOutFlat
struct  VertOutLit
struct  VertOutPoint
struct  VertOutSmooth

Enumerations

enum  PointStyle : int { POINT_SQUARE = 1 , POINT_CIRCLE = 2 , POINT_CIRCLE_AA = 3 , POINT_CIRCLE_AA_OUTLINE = 4 }

Functions

void simple_vert (const Simple &srt, const ClipPlanes &clip, const VertIn &v_in, float4 &out_pos, VertOutFlat &flat_out, VertOutSmooth &smooth_out, VertOutDashed &dashed_out, VertOutLit &lit_out, float(&clip_distance)[6])
void simple_point_vert (const SimplePoint &srt, const ClipPlanes &clip, const VertInPoint &v_in, float4 &out_pos, VertOutPoint &v_out, float &out_point_size, float(&clip_distance)[6])
void simple_point_frag (const SimplePoint &srt, const ColorSpace &colorspace, const float2 pt_coord, const VertOutPoint &v_out, FragOut &frag_out)
void simple_frag (const Simple &srt, const ColorSpace &colorspace, const VertOutFlat &flat_out, const VertOutSmooth &smooth_out, FragOut &frag_out)
void simple_clip (const Simple &srt, const SimpleClip &clip, const VertIn &v_in, float4 &out_pos, VertOutFlat &flat_out, float(&clip_distance)[1])
void checker_frag (const Checker &srt, const float4 frag_co, FragOut &frag_out)
void diag_stripes_frag (const DiagStripes &srt, const float4 frag_co, FragOut &frag_out)
void dashed_line_frag (const Dashed &srt, const VertOutDashed &v_out, FragOut &frag_out)
void simple_lit_frag (const SimpleLit &srt, const VertOutLit &v_out, FragOut &frag_out)

Enumeration Type Documentation

◆ PointStyle

enum builtin::PointStyle : int
Enumerator
POINT_SQUARE 
POINT_CIRCLE 
POINT_CIRCLE_AA 
POINT_CIRCLE_AA_OUTLINE 

Definition at line 106 of file gpu_shader_simple.bsl.hh.

Function Documentation

◆ checker_frag()

void builtin::checker_frag ( const Checker & srt,
const float4 frag_co,
FragOut & frag_out )

Definition at line 273 of file gpu_shader_simple.bsl.hh.

References checker_frag(), float, frag_coord, fragment, mod, out, resource_table, float2::x, and float2::y.

Referenced by checker_frag().

◆ dashed_line_frag()

void builtin::dashed_line_frag ( const Dashed & srt,
const VertOutDashed & v_out,
FragOut & frag_out )

◆ diag_stripes_frag()

void builtin::diag_stripes_frag ( const DiagStripes & srt,
const float4 frag_co,
FragOut & frag_out )

Definition at line 288 of file gpu_shader_simple.bsl.hh.

References diag_stripes_frag(), float, frag_coord, fragment, mod, out, and resource_table.

Referenced by diag_stripes_frag().

◆ simple_clip()

void builtin::simple_clip ( const Simple & srt,
const SimpleClip & clip,
const VertIn & v_in,
float4 & out_pos,
VertOutFlat & flat_out,
float(&) clip_distance[1] )

Definition at line 253 of file gpu_shader_simple.bsl.hh.

References clip_distance, dot(), in, out, position, resource_table, simple_clip(), static_branch, and vertex.

Referenced by simple_clip().

◆ simple_frag()

void builtin::simple_frag ( const Simple & srt,
const ColorSpace & colorspace,
const VertOutFlat & flat_out,
const VertOutSmooth & smooth_out,
FragOut & frag_out )

Definition at line 231 of file gpu_shader_simple.bsl.hh.

References condition, fragment, in, out, resource_table, simple_frag(), and static_branch.

Referenced by simple_frag().

◆ simple_lit_frag()

void builtin::simple_lit_frag ( const SimpleLit & srt,
const VertOutLit & v_out,
FragOut & frag_out )

Definition at line 333 of file gpu_shader_simple.bsl.hh.

References clamp(), dot(), fragment, in, normalize, out, resource_table, and simple_lit_frag().

Referenced by simple_lit_frag().

◆ simple_point_frag()

void builtin::simple_point_frag ( const SimplePoint & srt,
const ColorSpace & colorspace,
const float2 pt_coord,
const VertOutPoint & v_out,
FragOut & frag_out )

◆ simple_point_vert()

void builtin::simple_point_vert ( const SimplePoint & srt,
const ClipPlanes & clip,
const VertInPoint & v_in,
float4 & out_pos,
VertOutPoint & v_out,
float & out_point_size,
float(&) clip_distance[6] )

◆ simple_vert()

void builtin::simple_vert ( const Simple & srt,
const ClipPlanes & clip,
const VertIn & v_in,
float4 & out_pos,
VertOutFlat & flat_out,
VertOutSmooth & smooth_out,
VertOutDashed & dashed_out,
VertOutLit & lit_out,
float(&) clip_distance[6] )