|
Blender V5.0
|
#include <algorithm>#include <fmt/format.h>#include <iomanip>#include <iostream>#include <regex>#include <string>#include "BLI_map.hh"#include "BLI_string_ref.hh"#include "CLG_log.h"#include "gpu_capabilities_private.hh"#include "gpu_material_library.hh"#include "gpu_shader_create_info.hh"#include "gpu_shader_dependency_private.hh"#include "../glsl_preprocess/glsl_preprocess.hh"#include "glsl_compositor_source_list.h"#include "glsl_draw_source_list.h"#include "glsl_gpu_source_list.h"#include "glsl_ocio_source_list.h"#include "glsl_compositor_metadata_list.hh"#include "glsl_draw_metadata_list.hh"#include "glsl_gpu_metadata_list.hh"#include "glsl_ocio_metadata_list.hh"Go to the source code of this file.
Classes | |
| struct | blender::gpu::GPUSource |
Namespaces | |
| namespace | blender |
| namespace | blender::gpu |
| namespace | blender::gpu::shader |
Macros | |
| #define | SHADER_SOURCE(filename_underscore, filename, filepath) |
| #define | CLOG_FILE_INCLUDE(_from, _include) |
| #define | SHADER_SOURCE(filename_underscore, filename, filepath) |
Typedefs | |
| using | blender::gpu::GPUPrintFormatMap = Map<uint32_t, shader::PrintfFormat> |
| using | blender::gpu::GPUSourceDictionary = Map<StringRef, GPUSource *> |
| using | blender::gpu::GPUFunctionDictionary = Map<StringRef, GPUFunction *> |
Variables | |
| static CLG_LogRef | LOG = {"shader.dependencies"} |
| static GPUPrintFormatMap * | g_formats = nullptr |
| static GPUSourceDictionary * | g_sources = nullptr |
| static GPUFunctionDictionary * | g_functions = nullptr |
| static bool | force_printf_injection = false |
Shader source dependency builder that make possible to support #include directive inside the shader files.
Definition in file gpu_shader_dependency.cc.
| #define CLOG_FILE_INCLUDE | ( | _from, | |
| _include ) |
Referenced by blender::gpu::GPUSource::source_get().
| #define SHADER_SOURCE | ( | filename_underscore, | |
| filename, | |||
| filepath ) |
Definition at line 37 of file gpu_shader_dependency.cc.
| #define SHADER_SOURCE | ( | filename_underscore, | |
| filename, | |||
| filepath ) |
Definition at line 37 of file gpu_shader_dependency.cc.
| GPUFunction * gpu_material_library_get_function | ( | const char * | name | ) |
Definition at line 545 of file gpu_shader_dependency.cc.
References BLI_assert_msg, g_functions, and name.
Referenced by GPU_link(), and gpu_stack_link_v().
| void gpu_material_library_use_function | ( | blender::Set< blender::StringRefNull > & | used_libraries, |
| const char * | name ) |
| void gpu_shader_dependency_exit | ( | ) |
Definition at line 529 of file gpu_shader_dependency.cc.
References g_formats, g_functions, and g_sources.
Referenced by GPU_exit().
| void gpu_shader_dependency_init | ( | ) |
Definition at line 471 of file gpu_shader_dependency.cc.
References BLI_assert_msg, blender::StringRefNull::c_str(), force_printf_injection, g_formats, g_functions, g_sources, openSubdiv_getGLSLPatchBasisSource(), UNUSED_VARS_NDEBUG, and blender::gpu::shader::USE_PRINTF.
Referenced by GPU_init().
|
static |
Definition at line 469 of file gpu_shader_dependency.cc.
Referenced by blender::gpu::shader::gpu_shader_dependency_force_gpu_print_injection(), and gpu_shader_dependency_init().
|
static |
|
static |
Definition at line 468 of file gpu_shader_dependency.cc.
Referenced by blender::gpu::GPUSource::add_function(), gpu_material_library_get_function(), gpu_material_library_use_function(), gpu_shader_dependency_exit(), gpu_shader_dependency_init(), and blender::gpu::GPUSource::GPUSource().
|
static |
Definition at line 467 of file gpu_shader_dependency.cc.
Referenced by gpu_shader_dependency_exit(), blender::gpu::shader::gpu_shader_dependency_get_builtins(), blender::gpu::shader::gpu_shader_dependency_get_filename_from_source_string(), blender::gpu::shader::gpu_shader_dependency_get_resolved_source(), blender::gpu::shader::gpu_shader_dependency_get_source(), and gpu_shader_dependency_init().
|
static |
Definition at line 49 of file gpu_shader_dependency.cc.