Blender V4.3
basic_depth_info.hh File Reference

Go to the source code of this file.

Macros

Variations Declaration
#define BASIC_FINAL_VARIATION(name, ...)    GPU_SHADER_CREATE_INFO(name).additional_info(__VA_ARGS__).do_static_compilation(true);
 
#define BASIC_CLIPPING_VARIATIONS(prefix, ...)
 
#define BASIC_CONSERVATIVE_VARIATIONS(prefix, ...)
 
#define BASIC_OBTYPE_VARIATIONS(prefix, ...)
 

Functions

Conservative Rasterization

Allow selection of sub-pixel objects.

 geometry_layout (PrimitiveIn::TRIANGLES, PrimitiveOut::TRIANGLE_STRIP, 3) .geometry_source("basic_conservative_depth_geom.glsl")
 
Object types
 vertex_in (0, Type::VEC3, "pos") .vertex_source("basic_depth_vert.glsl") .additional_info("draw_mesh")
 
 vertex_source ("basic_depth_pointcloud_vert.glsl") .additional_info("draw_pointcloud")
 
 vertex_source ("basic_depth_curves_vert.glsl") .additional_info("draw_hair")
 
 define ("CONSERVATIVE_RASTER") .vertex_source("basic_depth_pointcloud_vert.glsl") .additional_info("draw_pointcloud")
 
Depth shader types.
 GPU_SHADER_CREATE_INFO (basic_depth).fragment_source("basic_depth_frag.glsl")
 
 BASIC_OBTYPE_VARIATIONS (basic_depth, "basic_depth", "draw_globals")
 

Macro Definition Documentation

◆ BASIC_CLIPPING_VARIATIONS

#define BASIC_CLIPPING_VARIATIONS ( prefix,
... )
Value:
BASIC_FINAL_VARIATION(prefix##_clipped, "drw_clipped", __VA_ARGS__) \
BASIC_FINAL_VARIATION(prefix, __VA_ARGS__)
#define BASIC_FINAL_VARIATION(name,...)

Definition at line 56 of file basic_depth_info.hh.

◆ BASIC_CONSERVATIVE_VARIATIONS

#define BASIC_CONSERVATIVE_VARIATIONS ( prefix,
... )
Value:
BASIC_CLIPPING_VARIATIONS(prefix##_conservative, "basic_conservative", __VA_ARGS__) \
BASIC_CLIPPING_VARIATIONS(prefix##_conservative_no_geom, __VA_ARGS__) \
BASIC_CLIPPING_VARIATIONS(prefix, __VA_ARGS__)
#define BASIC_CLIPPING_VARIATIONS(prefix,...)

Definition at line 60 of file basic_depth_info.hh.

◆ BASIC_FINAL_VARIATION

#define BASIC_FINAL_VARIATION ( name,
... )    GPU_SHADER_CREATE_INFO(name).additional_info(__VA_ARGS__).do_static_compilation(true);

Definition at line 53 of file basic_depth_info.hh.

◆ BASIC_OBTYPE_VARIATIONS

#define BASIC_OBTYPE_VARIATIONS ( prefix,
... )
Value:
BASIC_CONSERVATIVE_VARIATIONS(prefix##_mesh, "basic_mesh", __VA_ARGS__) \
BASIC_CONSERVATIVE_VARIATIONS(prefix##_pointcloud, "basic_pointcloud", __VA_ARGS__) \
BASIC_CLIPPING_VARIATIONS(prefix##_curves, "basic_curves", __VA_ARGS__)
#define BASIC_CONSERVATIVE_VARIATIONS(prefix,...)

Definition at line 65 of file basic_depth_info.hh.

Function Documentation

◆ BASIC_OBTYPE_VARIATIONS()

BASIC_OBTYPE_VARIATIONS ( basic_depth ,
"basic_depth" ,
"draw_globals"  )

◆ define()

define ( "CONSERVATIVE_RASTER" )

◆ geometry_layout()

geometry_layout ( PrimitiveIn::TRIANGLES ,
PrimitiveOut::TRIANGLE_STRIP ,
3  )

◆ GPU_SHADER_CREATE_INFO()

GPU_SHADER_CREATE_INFO ( basic_depth )

◆ vertex_in()

vertex_in ( 0 ,
Type::VEC3 ,
"pos"  )

◆ vertex_source() [1/2]

vertex_source ( "basic_depth_curves_vert.glsl" )

◆ vertex_source() [2/2]

vertex_source ( "basic_depth_pointcloud_vert.glsl" )