RetroArch
Classes | Macros | Functions
main.cpp File Reference
#include "spirv_cpp.hpp"
#include "spirv_cross_util.hpp"
#include "spirv_glsl.hpp"
#include "spirv_hlsl.hpp"
#include "spirv_msl.hpp"
#include "spirv_reflect.hpp"
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <functional>
#include <limits>
#include <memory>
#include <stdexcept>
#include <unordered_map>
#include <unordered_set>
Include dependency graph for main.cpp:

Classes

struct  CLICallbacks
 
struct  CLIParser
 
struct  PLSArg
 
struct  Remap
 
struct  VariableTypeRemap
 
struct  InterfaceVariableRename
 
struct  CLIArguments
 
struct  CLIArguments::Rename
 

Macros

#define THROW(x)   throw runtime_error(x)
 
#define CHECK_MODE(m)
 

Functions

static vector< uint32_tread_spirv_file (const char *path)
 
static bool write_string_to_file (const char *path, const char *string)
 
static void print_resources (const Compiler &compiler, const char *tag, const vector< Resource > &resources)
 
static const char * execution_model_to_str (spv::ExecutionModel model)
 
static void print_resources (const Compiler &compiler, const ShaderResources &res)
 
static void print_push_constant_resources (const Compiler &compiler, const vector< Resource > &res)
 
static void print_spec_constants (const Compiler &compiler)
 
static void print_capabilities_and_extensions (const Compiler &compiler)
 
static void print_help ()
 
static bool remap_generic (Compiler &compiler, const vector< Resource > &resources, const Remap &remap)
 
static vector< PlsRemapremap_pls (const vector< PLSArg > &pls_variables, const vector< Resource > &resources, const vector< Resource > *secondary_resources)
 
static PlsFormat pls_format (const char *str)
 
static ExecutionModel stage_to_execution_model (const std::string &stage)
 
static int main_inner (int argc, char *argv[])
 
int main (int argc, char *argv[])
 

Macro Definition Documentation

◆ CHECK_MODE

#define CHECK_MODE (   m)
Value:
case ExecutionMode##m: \
fprintf(stderr, " %s\n", #m); \
break
ExecutionMode
Definition: spirv.hpp:93
const GLfloat * m
Definition: glext.h:11755

◆ THROW

#define THROW (   x)    throw runtime_error(x)

Function Documentation

◆ execution_model_to_str()

static const char* execution_model_to_str ( spv::ExecutionModel  model)
static
Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char *  argv[] 
)
Here is the call graph for this function:

◆ main_inner()

static int main_inner ( int  argc,
char *  argv[] 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ pls_format()

static PlsFormat pls_format ( const char *  str)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ print_capabilities_and_extensions()

static void print_capabilities_and_extensions ( const Compiler compiler)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ print_help()

static void print_help ( )
static
Here is the caller graph for this function:

◆ print_push_constant_resources()

static void print_push_constant_resources ( const Compiler compiler,
const vector< Resource > &  res 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ print_resources() [1/2]

static void print_resources ( const Compiler compiler,
const char *  tag,
const vector< Resource > &  resources 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ print_resources() [2/2]

static void print_resources ( const Compiler compiler,
const ShaderResources res 
)
static
Here is the call graph for this function:

◆ print_spec_constants()

static void print_spec_constants ( const Compiler compiler)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ read_spirv_file()

static vector<uint32_t> read_spirv_file ( const char *  path)
static
Here is the caller graph for this function:

◆ remap_generic()

static bool remap_generic ( Compiler compiler,
const vector< Resource > &  resources,
const Remap remap 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ remap_pls()

static vector<PlsRemap> remap_pls ( const vector< PLSArg > &  pls_variables,
const vector< Resource > &  resources,
const vector< Resource > *  secondary_resources 
)
static
Here is the caller graph for this function:

◆ stage_to_execution_model()

static ExecutionModel stage_to_execution_model ( const std::string stage)
static
Here is the caller graph for this function:

◆ write_string_to_file()

static bool write_string_to_file ( const char *  path,
const char *  string 
)
static
Here is the caller graph for this function: