cgv
|
holds options applied before and during shader compilation, such as preprocessor defines and code snippets. More...
#include <shader_code.h>
Public Member Functions | |
shader_compile_options (const shader_define_map &defines) | |
shader_compile_options (const std::vector< shader_code_snippet > &snippets) | |
shader_compile_options (const shader_define_map &defines, const std::vector< shader_code_snippet > &snippets) | |
Public Attributes | |
shader_define_map | defines |
map of pre-processor define names to values | |
std::vector< shader_code_snippet > | snippets |
shader code snippets | |
holds options applied before and during shader compilation, such as preprocessor defines and code snippets.
Pre-processor defines will be handled as follows:
Snippets are handled as follows (also see shader_code_snippets):
Definition at line 87 of file shader_code.h.
|
inline |
Definition at line 94 of file shader_code.h.
|
inline |
Definition at line 95 of file shader_code.h.
|
inline |
Definition at line 96 of file shader_code.h.
|
inline |
Definition at line 97 of file shader_code.h.
shader_define_map cgv::render::shader_compile_options::defines |
map of pre-processor define names to values
Definition at line 89 of file shader_code.h.
Referenced by cgv::render::renderer::build_program(), cgv::render::renderer::enable(), cgv::plot::plot2d::init(), cgv::render::a_buffer::init(), cgv::render::renderer::init(), and cgv::render::a_buffer::init_frame().
std::vector<shader_code_snippet> cgv::render::shader_compile_options::snippets |
shader code snippets
Definition at line 91 of file shader_code.h.