RetroArch
Classes | Enumerations | Functions | Variables
glslangtest Namespace Reference

Classes

class  GlslangInitializer
 
class  GlslangTest
 
struct  GTestSettings
 

Enumerations

enum  Source { Source::GLSL, Source::HLSL }
 
enum  Semantics { Semantics::OpenGL, Semantics::Vulkan }
 
enum  Target { Target::AST, Target::Spv, Target::BothASTAndSpv }
 

Functions

std::string FileNameAsCustomTestSuffix (const ::testing::TestParamInfo< std::string > &info)
 
EShLanguage GetShaderStage (const std::string &stage)
 
EShMessages DeriveOptions (Source source, Semantics semantics, Target target)
 
std::pair< bool, std::stringReadFile (const std::string &path)
 
std::pair< bool, std::vector< std::uint32_t > > ReadSpvBinaryFile (const std::string &path)
 
bool WriteFile (const std::string &path, const std::string &contents)
 
std::string GetSuffix (const std::string &name)
 

Variables

GTestSettings GlobalTestSettings = {nullptr, false, GLSLANG_TEST_DIRECTORY}
 

Enumeration Type Documentation

◆ Semantics

Enumerator
OpenGL 
Vulkan 

◆ Source

enum glslangtest::Source
strong
Enumerator
GLSL 
HLSL 

◆ Target

enum glslangtest::Target
strong
Enumerator
AST 
Spv 
BothASTAndSpv 

Function Documentation

◆ DeriveOptions()

EShMessages glslangtest::DeriveOptions ( Source  source,
Semantics  semantics,
Target  target 
)
Here is the caller graph for this function:

◆ FileNameAsCustomTestSuffix()

std::string glslangtest::FileNameAsCustomTestSuffix ( const ::testing::TestParamInfo< std::string > &  info)

◆ GetShaderStage()

EShLanguage glslangtest::GetShaderStage ( const std::string stage)
Here is the caller graph for this function:

◆ GetSuffix()

std::string glslangtest::GetSuffix ( const std::string name)
Here is the caller graph for this function:

◆ ReadFile()

std::pair< bool, std::string > glslangtest::ReadFile ( const std::string path)
Here is the caller graph for this function:

◆ ReadSpvBinaryFile()

std::pair< bool, std::vector< std::uint32_t > > glslangtest::ReadSpvBinaryFile ( const std::string path)
Here is the caller graph for this function:

◆ WriteFile()

bool glslangtest::WriteFile ( const std::string path,
const std::string contents 
)
Here is the caller graph for this function:

Variable Documentation

◆ GlobalTestSettings

GTestSettings glslangtest::GlobalTestSettings = {nullptr, false, GLSLANG_TEST_DIRECTORY}