Blender
V3.3
|
#include "gpu_shader_create_info.hh"
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") | |
Depth shader types. | |
GPU_SHADER_CREATE_INFO (basic_depth).fragment_source("basic_depth_frag.glsl") | |
BASIC_OBTYPE_VARIATIONS (basic_depth, "basic_depth") | |
#define BASIC_CLIPPING_VARIATIONS | ( | prefix, | |
... | |||
) |
Definition at line 42 of file basic_depth_info.hh.
#define BASIC_CONSERVATIVE_VARIATIONS | ( | prefix, | |
... | |||
) |
Definition at line 46 of file basic_depth_info.hh.
#define BASIC_FINAL_VARIATION | ( | name, | |
... | |||
) | GPU_SHADER_CREATE_INFO(name).additional_info(__VA_ARGS__).do_static_compilation(true); |
Definition at line 39 of file basic_depth_info.hh.
#define BASIC_OBTYPE_VARIATIONS | ( | prefix, | |
... | |||
) |
Definition at line 50 of file basic_depth_info.hh.
BASIC_OBTYPE_VARIATIONS | ( | basic_depth | , |
"basic_depth" | |||
) |
geometry_layout | ( | PrimitiveIn::TRIANGLES | , |
PrimitiveOut::TRIANGLE_STRIP | , | ||
3 | |||
) |
GPU_SHADER_CREATE_INFO | ( | basic_depth | ) |
vertex_in | ( | 0 | , |
Type::VEC3 | , | ||
"pos" | |||
) |
vertex_source | ( | "basic_depth_curves_vert.glsl" | ) |
vertex_source | ( | "basic_depth_pointcloud_vert.glsl" | ) |
Referenced by pygpu_shader_info_vertex_source().