RetroArch
Functions
slang_process.cpp File Reference
#include <fstream>
#include <iostream>
#include <spirv_glsl.hpp>
#include <spirv_hlsl.hpp>
#include <spirv_msl.hpp>
#include <compat/strl.h>
#include <string>
#include <stdint.h>
#include <algorithm>
#include "glslang_util.h"
#include "slang_preprocess.h"
#include "slang_reflection.h"
#include "slang_process.h"
#include "../../verbosity.h"
Include dependency graph for slang_process.cpp:

Functions

template<typename P >
static bool set_unique_map (unordered_map< string, P > &m, const string &name, const P &p)
 
template<typename M , typename S >
static string get_semantic_name (const unordered_map< string, M > *map, S semantic, unsigned index)
 
static string get_semantic_name (slang_reflection &reflection, slang_semantic semantic, unsigned index)
 
static string get_semantic_name (slang_reflection &reflection, slang_texture_semantic semantic, unsigned index)
 
static string get_size_semantic_name (slang_reflection &reflection, slang_texture_semantic semantic, unsigned index)
 
static bool slang_process_reflection (const Compiler *vs_compiler, const Compiler *ps_compiler, const ShaderResources &vs_resources, const ShaderResources &ps_resources, video_shader *shader_info, unsigned pass_number, const semantics_map_t *map, pass_semantics_t *out)
 
bool slang_process (video_shader *shader_info, unsigned pass_number, enum rarch_shader_type dst_type, unsigned version, const semantics_map_t *semantics_map, pass_semantics_t *out)
 

Function Documentation

◆ get_semantic_name() [1/3]

template<typename M , typename S >
static string get_semantic_name ( const unordered_map< string, M > *  map,
S  semantic,
unsigned  index 
)
static
Here is the caller graph for this function:

◆ get_semantic_name() [2/3]

static string get_semantic_name ( slang_reflection &  reflection,
slang_semantic  semantic,
unsigned  index 
)
static
Here is the call graph for this function:

◆ get_semantic_name() [3/3]

static string get_semantic_name ( slang_reflection &  reflection,
slang_texture_semantic  semantic,
unsigned  index 
)
static
Here is the call graph for this function:

◆ get_size_semantic_name()

static string get_size_semantic_name ( slang_reflection &  reflection,
slang_texture_semantic  semantic,
unsigned  index 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_unique_map()

template<typename P >
static bool set_unique_map ( unordered_map< string, P > &  m,
const string name,
const P p 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ slang_process()

bool slang_process ( video_shader shader_info,
unsigned  pass_number,
enum rarch_shader_type  dst_type,
unsigned  version,
const semantics_map_t semantics_map,
pass_semantics_t out 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ slang_process_reflection()

static bool slang_process_reflection ( const Compiler vs_compiler,
const Compiler ps_compiler,
const ShaderResources vs_resources,
const ShaderResources ps_resources,
video_shader shader_info,
unsigned  pass_number,
const semantics_map_t map,
pass_semantics_t out 
)
static
Here is the call graph for this function:
Here is the caller graph for this function: