Blender V4.3
gpu_shader_dependency.cc File Reference
#include <algorithm>
#include <iomanip>
#include <iostream>
#include <regex>
#include <sstream>
#include "BLI_ghash.h"
#include "BLI_map.hh"
#include "BLI_string.h"
#include "BLI_string_ref.hh"
#include "gpu_material_library.hh"
#include "gpu_shader_create_info.hh"
#include "gpu_shader_dependency_private.hh"
#include "GPU_context.hh"
#include "glsl_compositor_source_list.h"
#include "glsl_draw_source_list.h"
#include "glsl_gpu_source_list.h"

Go to the source code of this file.

Macros

#define SHADER_SOURCE(datatoc, filename, filepath)   extern char datatoc[];
 
#define find_keyword   find_str<true, false>
 
#define rfind_keyword   find_str<true, true>
 
#define find_token   find_str<false, false>
 
#define rfind_token   find_str<false, true>
 
#define CHECK(test_value, str, ofs, msg)
 
#define SHADER_SOURCE(datatoc, filename, filepath)    g_sources->add_new(filename, new GPUSource(filepath, filename, datatoc, g_functions, g_formats));
 

Detailed Description

Shader source dependency builder that make possible to support #include directive inside the shader files.

Definition in file gpu_shader_dependency.cc.

Macro Definition Documentation

◆ CHECK

#define CHECK ( test_value,
str,
ofs,
msg )
Value:
if ((test_value) == -1) { \
print_error(str, ofs, msg); \
continue; \
}
#define str(s)

Referenced by libmv::euclidean_resection::EuclideanResection(), libmv::euclidean_resection::EuclideanResectionAnsarDaniilidis(), and libmv::euclidean_resection::EuclideanResectionEPnP().

◆ find_keyword

#define find_keyword   find_str<true, false>

◆ find_token

#define find_token   find_str<false, false>

◆ rfind_keyword

#define rfind_keyword   find_str<true, true>

◆ rfind_token

#define rfind_token   find_str<false, true>

◆ SHADER_SOURCE [1/2]

#define SHADER_SOURCE ( datatoc,
filename,
filepath )   extern char datatoc[];

Definition at line 30 of file gpu_shader_dependency.cc.

◆ SHADER_SOURCE [2/2]

#define SHADER_SOURCE ( datatoc,
filename,
filepath )    g_sources->add_new(filename, new GPUSource(filepath, filename, datatoc, g_functions, g_formats));

Definition at line 30 of file gpu_shader_dependency.cc.