DDraceNetwork Documentation
Loading...
Searching...
No Matches
CGLSLCompiler Class Reference

#include <glsl_shader_compiler.h>

Collaboration diagram for CGLSLCompiler:
[legend]

Classes

struct  SGLSLCompilerDefine

Public Types

enum  EGLSLCompilerTextureReplaceType { GLSL_COMPILER_TEXTURE_REPLACE_TYPE_2D = 0 , GLSL_COMPILER_TEXTURE_REPLACE_TYPE_3D , GLSL_COMPILER_TEXTURE_REPLACE_TYPE_2D_ARRAY }

Public Member Functions

 CGLSLCompiler (int OpenGLVersionMajor, int OpenGLVersionMinor, int OpenGLVersionPatch, bool IsOpenGLES, float TextureLODBias)
void SetHasTextureArray (bool TextureArray)
void SetTextureReplaceType (int TextureReplaceType)
void AddDefine (const std::string &DefineName, const std::string &DefineValue)
void AddDefine (const char *pDefineName, const char *pDefineValue)
void ClearDefines ()
void ParseLine (std::string &Line, const char *pReadLine, EGLSLShaderCompilerType Type)

Private Attributes

std::vector< SGLSLCompilerDefinem_vDefines
int m_OpenGLVersionMajor
int m_OpenGLVersionMinor
int m_OpenGLVersionPatch
bool m_IsOpenGLES
float m_TextureLODBias
bool m_HasTextureArray
int m_TextureReplaceType

Friends

class CGLSL

Member Enumeration Documentation

◆ EGLSLCompilerTextureReplaceType

Enumerator
GLSL_COMPILER_TEXTURE_REPLACE_TYPE_2D 
GLSL_COMPILER_TEXTURE_REPLACE_TYPE_3D 
GLSL_COMPILER_TEXTURE_REPLACE_TYPE_2D_ARRAY 

Constructor & Destructor Documentation

◆ CGLSLCompiler()

CGLSLCompiler::CGLSLCompiler ( int OpenGLVersionMajor,
int OpenGLVersionMinor,
int OpenGLVersionPatch,
bool IsOpenGLES,
float TextureLODBias )

Member Function Documentation

◆ AddDefine() [1/2]

void CGLSLCompiler::AddDefine ( const char * pDefineName,
const char * pDefineValue )

◆ AddDefine() [2/2]

void CGLSLCompiler::AddDefine ( const std::string & DefineName,
const std::string & DefineValue )

◆ ClearDefines()

void CGLSLCompiler::ClearDefines ( )

◆ ParseLine()

void CGLSLCompiler::ParseLine ( std::string & Line,
const char * pReadLine,
EGLSLShaderCompilerType Type )

◆ SetHasTextureArray()

void CGLSLCompiler::SetHasTextureArray ( bool TextureArray)
inline

◆ SetTextureReplaceType()

void CGLSLCompiler::SetTextureReplaceType ( int TextureReplaceType)
inline

◆ CGLSL

friend class CGLSL
friend

Member Data Documentation

◆ m_HasTextureArray

bool CGLSLCompiler::m_HasTextureArray
private

◆ m_IsOpenGLES

bool CGLSLCompiler::m_IsOpenGLES
private

◆ m_OpenGLVersionMajor

int CGLSLCompiler::m_OpenGLVersionMajor
private

◆ m_OpenGLVersionMinor

int CGLSLCompiler::m_OpenGLVersionMinor
private

◆ m_OpenGLVersionPatch

int CGLSLCompiler::m_OpenGLVersionPatch
private

◆ m_TextureLODBias

float CGLSLCompiler::m_TextureLODBias
private

◆ m_TextureReplaceType

int CGLSLCompiler::m_TextureReplaceType
private

◆ m_vDefines

std::vector<SGLSLCompilerDefine> CGLSLCompiler::m_vDefines
private

The documentation for this class was generated from the following files: