Blender V4.5
gpu_shader_dependency.cc File Reference
#include <algorithm>
#include <iomanip>
#include <iostream>
#include <regex>
#include <string>
#include "BLI_ghash.h"
#include "BLI_map.hh"
#include "BLI_string_ref.hh"
#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.

Macros

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

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

◆ SHADER_SOURCE [1/2]

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

Definition at line 35 of file gpu_shader_dependency.cc.

◆ SHADER_SOURCE [2/2]

#define SHADER_SOURCE ( filename_underscore,
filename,
filepath )
Value:
g_sources->add_new(filename, \
new GPUSource(filepath, \
filename, \
datatoc_##filename_underscore, \
g_functions, \
g_formats, \
blender::gpu::shader::metadata_##filename_underscore));

Definition at line 35 of file gpu_shader_dependency.cc.