RetroArch
Classes | Namespaces | Macros | Typedefs | Enumerations | Functions
ShaderLang.h File Reference
#include "../Include/ResourceLimits.h"
#include "../MachineIndependent/Versions.h"
#include <cstring>
#include <vector>
#include <list>
#include <string>
#include <utility>
Include dependency graph for ShaderLang.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  glslang::TInputLanguage
 
struct  glslang::TClient
 
struct  glslang::TTarget
 
struct  glslang::TEnvironment
 
struct  ShBinding
 
struct  ShBindingTable
 
class  glslang::TShader
 
class  glslang::TShader::Includer
 
struct  glslang::TShader::Includer::IncludeResult
 
class  glslang::TShader::ForbidIncluder
 
class  glslang::TIoMapResolver
 
class  glslang::TProgram
 

Namespaces

 glslang
 

Macros

#define SH_IMPORT_EXPORT
 
#define __fastcall
 
#define C_DECL
 
#define GLSLANG_MINOR_VERSION   7
 

Typedefs

typedef EShTargetClientVersion glslang::EshTargetClientVersion
 
typedef voidShHandle
 

Enumerations

enum  EShLanguage {
  EShLangVertex, EShLangTessControl, EShLangTessEvaluation, EShLangGeometry,
  EShLangFragment, EShLangCompute, EShLangCount
}
 
enum  EShLanguageMask {
  EShLangVertexMask = (1 << EShLangVertex), EShLangTessControlMask = (1 << EShLangTessControl), EShLangTessEvaluationMask = (1 << EShLangTessEvaluation), EShLangGeometryMask = (1 << EShLangGeometry),
  EShLangFragmentMask = (1 << EShLangFragment), EShLangComputeMask = (1 << EShLangCompute)
}
 
enum  glslang::EShSource { glslang::EShSourceNone, glslang::EShSourceGlsl, glslang::EShSourceHlsl }
 
enum  glslang::EShClient { glslang::EShClientNone, glslang::EShClientVulkan, glslang::EShClientOpenGL }
 
enum  glslang::EShTargetLanguage { glslang::EShTargetNone, glslang::EShTargetSpv, glslang::EshTargetSpv = EShTargetSpv }
 
enum  glslang::EShTargetClientVersion { glslang::EShTargetVulkan_1_0 = (1 << 22), glslang::EShTargetVulkan_1_1 = (1 << 22) | (1 << 12), glslang::EShTargetOpenGL_450 = 450 }
 
enum  glslang::EShTargetLanguageVersion { glslang::EShTargetSpv_1_0 = (1 << 16), glslang::EShTargetSpv_1_3 = (1 << 16) | (3 << 8) }
 
enum  EShExecutable { EShExVertexFragment, EShExFragment }
 
enum  EShOptimizationLevel { EShOptNoGeneration, EShOptNone, EShOptSimple, EShOptFull }
 
enum  EShTextureSamplerTransformMode { EShTexSampTransKeep, EShTexSampTransUpgradeTextureRemoveSampler }
 
enum  EShMessages {
  EShMsgDefault = 0, EShMsgRelaxedErrors = (1 << 0), EShMsgSuppressWarnings = (1 << 1), EShMsgAST = (1 << 2),
  EShMsgSpvRules = (1 << 3), EShMsgVulkanRules = (1 << 4), EShMsgOnlyPreprocessor = (1 << 5), EShMsgReadHlsl = (1 << 6),
  EShMsgCascadingErrors = (1 << 7), EShMsgKeepUncalled = (1 << 8), EShMsgHlslOffsets = (1 << 9), EShMsgDebugInfo = (1 << 10),
  EShMsgHlslEnable16BitTypes = (1 << 11), EShMsgHlslLegalization = (1 << 12)
}
 
enum  glslang::TResourceType {
  glslang::EResSampler, glslang::EResTexture, glslang::EResImage, glslang::EResUbo,
  glslang::EResSsbo, glslang::EResUav, glslang::EResCount
}
 

Functions

SH_IMPORT_EXPORT int ShInitialize ()
 
SH_IMPORT_EXPORT int __fastcall ShFinalize ()
 
const char * glslang::StageName (EShLanguage stage)
 
SH_IMPORT_EXPORT ShHandle ShConstructCompiler (const EShLanguage, int debugOptions)
 
SH_IMPORT_EXPORT ShHandle ShConstructLinker (const EShExecutable, int debugOptions)
 
SH_IMPORT_EXPORT ShHandle ShConstructUniformMap ()
 
SH_IMPORT_EXPORT void ShDestruct (ShHandle)
 
SH_IMPORT_EXPORT int ShCompile (const ShHandle, const char *const shaderStrings[], const int numStrings, const int *lengths, const EShOptimizationLevel, const TBuiltInResource *resources, int debugOptions, int defaultVersion=110, bool forwardCompatible=false, EShMessages messages=EShMsgDefault)
 
SH_IMPORT_EXPORT int ShLinkExt (const ShHandle, const ShHandle h[], const int numHandles)
 
SH_IMPORT_EXPORT void ShSetEncryptionMethod (ShHandle)
 
SH_IMPORT_EXPORT const char * ShGetInfoLog (const ShHandle)
 
SH_IMPORT_EXPORT const voidShGetExecutable (const ShHandle)
 
SH_IMPORT_EXPORT int ShSetVirtualAttributeBindings (const ShHandle, const ShBindingTable *)
 
SH_IMPORT_EXPORT int ShSetFixedAttributeBindings (const ShHandle, const ShBindingTable *)
 
SH_IMPORT_EXPORT int ShExcludeAttributes (const ShHandle, int *attributes, int count)
 
SH_IMPORT_EXPORT int ShGetUniformLocation (const ShHandle uniformMap, const char *name)
 
const char * glslang::GetEsslVersionString ()
 
const char * glslang::GetGlslVersionString ()
 
int glslang::GetKhronosToolId ()
 
bool glslang::InitializeProcess ()
 
void glslang::FinalizeProcess ()
 

Macro Definition Documentation

◆ __fastcall

#define __fastcall

◆ C_DECL

#define C_DECL

◆ GLSLANG_MINOR_VERSION

#define GLSLANG_MINOR_VERSION   7

◆ SH_IMPORT_EXPORT

#define SH_IMPORT_EXPORT

Typedef Documentation

◆ ShHandle

typedef void* ShHandle

Enumeration Type Documentation

◆ EShExecutable

Enumerator
EShExVertexFragment 
EShExFragment 

◆ EShLanguage

Enumerator
EShLangVertex 
EShLangTessControl 
EShLangTessEvaluation 
EShLangGeometry 
EShLangFragment 
EShLangCompute 
EShLangCount 

◆ EShLanguageMask

Enumerator
EShLangVertexMask 
EShLangTessControlMask 
EShLangTessEvaluationMask 
EShLangGeometryMask 
EShLangFragmentMask 
EShLangComputeMask 

◆ EShMessages

Enumerator
EShMsgDefault 
EShMsgRelaxedErrors 
EShMsgSuppressWarnings 
EShMsgAST 
EShMsgSpvRules 
EShMsgVulkanRules 
EShMsgOnlyPreprocessor 
EShMsgReadHlsl 
EShMsgCascadingErrors 
EShMsgKeepUncalled 
EShMsgHlslOffsets 
EShMsgDebugInfo 
EShMsgHlslEnable16BitTypes 
EShMsgHlslLegalization 

◆ EShOptimizationLevel

Enumerator
EShOptNoGeneration 
EShOptNone 
EShOptSimple 
EShOptFull 

◆ EShTextureSamplerTransformMode

Enumerator
EShTexSampTransKeep 
EShTexSampTransUpgradeTextureRemoveSampler 

Function Documentation

◆ ShCompile()

SH_IMPORT_EXPORT int ShCompile ( const ShHandle  ,
const char *const  shaderStrings[],
const int  numStrings,
const int *  lengths,
const EShOptimizationLevel  ,
const TBuiltInResource resources,
int  debugOptions,
int  defaultVersion = 110,
bool  forwardCompatible = false,
EShMessages  messages = EShMsgDefault 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ShConstructCompiler()

SH_IMPORT_EXPORT ShHandle ShConstructCompiler ( const EShLanguage  ,
int  debugOptions 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ShConstructLinker()

SH_IMPORT_EXPORT ShHandle ShConstructLinker ( const EShExecutable  ,
int  debugOptions 
)
Here is the call graph for this function:

◆ ShConstructUniformMap()

SH_IMPORT_EXPORT ShHandle ShConstructUniformMap ( )
Here is the call graph for this function:

◆ ShDestruct()

SH_IMPORT_EXPORT void ShDestruct ( ShHandle  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ShExcludeAttributes()

SH_IMPORT_EXPORT int ShExcludeAttributes ( const ShHandle  ,
int *  attributes,
int  count 
)
Here is the call graph for this function:

◆ ShFinalize()

SH_IMPORT_EXPORT int __fastcall ShFinalize ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ShGetExecutable()

SH_IMPORT_EXPORT const void* ShGetExecutable ( const ShHandle  )
Here is the call graph for this function:

◆ ShGetInfoLog()

SH_IMPORT_EXPORT const char* ShGetInfoLog ( const ShHandle  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ShGetUniformLocation()

SH_IMPORT_EXPORT int ShGetUniformLocation ( const ShHandle  uniformMap,
const char *  name 
)
Here is the call graph for this function:

◆ ShInitialize()

SH_IMPORT_EXPORT int ShInitialize ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ShLinkExt()

SH_IMPORT_EXPORT int ShLinkExt ( const ShHandle  ,
const ShHandle  h[],
const int  numHandles 
)
Here is the call graph for this function:

◆ ShSetEncryptionMethod()

SH_IMPORT_EXPORT void ShSetEncryptionMethod ( ShHandle  )

◆ ShSetFixedAttributeBindings()

SH_IMPORT_EXPORT int ShSetFixedAttributeBindings ( const ShHandle  ,
const ShBindingTable  
)
Here is the call graph for this function:

◆ ShSetVirtualAttributeBindings()

SH_IMPORT_EXPORT int ShSetVirtualAttributeBindings ( const ShHandle  ,
const ShBindingTable  
)
Here is the call graph for this function: