RetroArch
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
glslang::TType Class Reference

#include <Types.h>

Collaboration diagram for glslang::TType:
[legend]

Public Member Functions

 TType (TBasicType t=EbtVoid, TStorageQualifier q=EvqTemporary, int vs=1, int mc=0, int mr=0, bool isVector=false)
 
 TType (TBasicType t, TStorageQualifier q, TPrecisionQualifier p, int vs=1, int mc=0, int mr=0, bool isVector=false)
 
 TType (const TPublicType &p)
 
 TType (const TSampler &sampler, TStorageQualifier q=EvqUniform, TArraySizes *as=nullptr)
 
 TType (const TType &type, int derefIndex, bool rowMajor=false)
 
 TType (TTypeList *userDef, const TString &n)
 
 TType (TTypeList *userDef, const TString &n, const TQualifier &q)
 
virtual ~TType ()
 
void shallowCopy (const TType &copyOf)
 
void deepCopy (const TType &copyOf)
 
void makeTemporary ()
 
TTypeclone () const
 
void makeVector ()
 
virtual void hideMember ()
 
virtual bool hiddenMember () const
 
virtual void setFieldName (const TString &n)
 
virtual const TStringgetTypeName () const
 
virtual const TStringgetFieldName () const
 
virtual TBasicType getBasicType () const
 
virtual const TSamplergetSampler () const
 
virtual TSamplergetSampler ()
 
virtual TQualifiergetQualifier ()
 
virtual const TQualifiergetQualifier () const
 
virtual int getVectorSize () const
 
virtual int getMatrixCols () const
 
virtual int getMatrixRows () const
 
virtual int getOuterArraySize () const
 
virtual TIntermTypedgetOuterArrayNode () const
 
virtual int getCumulativeArraySize () const
 
virtual bool isArrayOfArrays () const
 
virtual int getImplicitArraySize () const
 
virtual const TArraySizesgetArraySizes () const
 
virtual TArraySizesgetArraySizes ()
 
virtual bool isScalar () const
 
virtual bool isScalarOrVec1 () const
 
virtual bool isVector () const
 
virtual bool isMatrix () const
 
virtual bool isArray () const
 
virtual bool isSizedArray () const
 
virtual bool isUnsizedArray () const
 
virtual bool isArrayVariablyIndexed () const
 
virtual void setArrayVariablyIndexed ()
 
virtual void updateImplicitArraySize (int size)
 
virtual bool isStruct () const
 
virtual bool isFloatingDomain () const
 
virtual bool isIntegerDomain () const
 
virtual bool isOpaque () const
 
virtual bool isBuiltIn () const
 
virtual bool isImage () const
 
virtual bool isSubpass () const
 
virtual bool isTexture () const
 
template<typename P >
bool contains (P predicate) const
 
virtual bool containsBasicType (TBasicType checkType) const
 
virtual bool containsArray () const
 
virtual bool containsStructure () const
 
virtual bool containsUnsizedArray () const
 
virtual bool containsOpaque () const
 
virtual bool containsBuiltIn () const
 
virtual bool containsNonOpaque () const
 
virtual bool containsSpecializationSize () const
 
void updateArraySizes (const TType &type)
 
void copyArraySizes (const TArraySizes &s)
 
void transferArraySizes (TArraySizes *s)
 
void clearArraySizes ()
 
void copyArrayInnerSizes (const TArraySizes *s)
 
void changeOuterArraySize (int s)
 
void adoptImplicitArraySizes (bool skipNonvariablyIndexed)
 
const char * getBasicString () const
 
TString getCompleteString () const
 
TString getBasicTypeString () const
 
const char * getStorageQualifierString () const
 
const char * getBuiltInVariableString () const
 
const char * getPrecisionQualifierString () const
 
const TTypeListgetStruct () const
 
void setStruct (TTypeList *s)
 
TTypeListgetWritableStruct () const
 
int computeNumComponents () const
 
void appendMangledName (TString &name) const
 
bool sameStructType (const TType &right) const
 
bool sameElementType (const TType &right) const
 
bool sameArrayness (const TType &right) const
 
bool sameInnerArrayness (const TType &right) const
 
bool sameElementShape (const TType &right) const
 
bool operator== (const TType &right) const
 
bool operator!= (const TType &right) const
 

Static Public Member Functions

static const char * getBasicString (TBasicType t)
 

Protected Member Functions

 TType (const TType &type)
 
TTypeoperator= (const TType &type)
 
void deepCopy (const TType &copyOf, TMap< TTypeList *, TTypeList *> &copiedMap)
 
void buildMangledName (TString &) const
 

Protected Attributes

TBasicType basicType: 8
 
int vectorSize: 4
 
int matrixCols: 4
 
int matrixRows: 4
 
bool vector1: 1
 
TQualifier qualifier
 
TArraySizesarraySizes
 
TTypeListstructure
 
TStringfieldName
 
TStringtypeName
 
TSampler sampler
 

Constructor & Destructor Documentation

◆ TType() [1/8]

glslang::TType::TType ( TBasicType  t = EbtVoid,
TStorageQualifier  q = EvqTemporary,
int  vs = 1,
int  mc = 0,
int  mr = 0,
bool  isVector = false 
)
inlineexplicit
Here is the call graph for this function:
Here is the caller graph for this function:

◆ TType() [2/8]

glslang::TType::TType ( TBasicType  t,
TStorageQualifier  q,
TPrecisionQualifier  p,
int  vs = 1,
int  mc = 0,
int  mr = 0,
bool  isVector = false 
)
inline
Here is the call graph for this function:

◆ TType() [3/8]

glslang::TType::TType ( const TPublicType p)
inlineexplicit
Here is the call graph for this function:

◆ TType() [4/8]

glslang::TType::TType ( const TSampler sampler,
TStorageQualifier  q = EvqUniform,
TArraySizes as = nullptr 
)
inline
Here is the call graph for this function:

◆ TType() [5/8]

glslang::TType::TType ( const TType type,
int  derefIndex,
bool  rowMajor = false 
)
inline
Here is the call graph for this function:

◆ TType() [6/8]

glslang::TType::TType ( TTypeList userDef,
const TString n 
)
inline
Here is the call graph for this function:

◆ TType() [7/8]

glslang::TType::TType ( TTypeList userDef,
const TString n,
const TQualifier q 
)
inline
Here is the call graph for this function:

◆ ~TType()

virtual glslang::TType::~TType ( )
inlinevirtual

◆ TType() [8/8]

glslang::TType::TType ( const TType type)
protected

Member Function Documentation

◆ adoptImplicitArraySizes()

void glslang::TType::adoptImplicitArraySizes ( bool  skipNonvariablyIndexed)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ appendMangledName()

void glslang::TType::appendMangledName ( TString name) const
inline
Here is the call graph for this function:

◆ buildMangledName()

void glslang::TType::buildMangledName ( TString mangledName) const
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ changeOuterArraySize()

void glslang::TType::changeOuterArraySize ( int  s)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ clearArraySizes()

void glslang::TType::clearArraySizes ( )
inline

◆ clone()

TType* glslang::TType::clone ( ) const
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ computeNumComponents()

int glslang::TType::computeNumComponents ( ) const
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ contains()

template<typename P >
bool glslang::TType::contains ( P  predicate) const
inline
Here is the caller graph for this function:

◆ containsArray()

virtual bool glslang::TType::containsArray ( ) const
inlinevirtual
Here is the call graph for this function:
Here is the caller graph for this function:

◆ containsBasicType()

virtual bool glslang::TType::containsBasicType ( TBasicType  checkType) const
inlinevirtual
Here is the call graph for this function:
Here is the caller graph for this function:

◆ containsBuiltIn()

virtual bool glslang::TType::containsBuiltIn ( ) const
inlinevirtual
Here is the call graph for this function:
Here is the caller graph for this function:

◆ containsNonOpaque()

virtual bool glslang::TType::containsNonOpaque ( ) const
inlinevirtual
Here is the call graph for this function:

◆ containsOpaque()

virtual bool glslang::TType::containsOpaque ( ) const
inlinevirtual
Here is the call graph for this function:
Here is the caller graph for this function:

◆ containsSpecializationSize()

virtual bool glslang::TType::containsSpecializationSize ( ) const
inlinevirtual
Here is the call graph for this function:

◆ containsStructure()

virtual bool glslang::TType::containsStructure ( ) const
inlinevirtual
Here is the call graph for this function:
Here is the caller graph for this function:

◆ containsUnsizedArray()

virtual bool glslang::TType::containsUnsizedArray ( ) const
inlinevirtual
Here is the call graph for this function:
Here is the caller graph for this function:

◆ copyArrayInnerSizes()

void glslang::TType::copyArrayInnerSizes ( const TArraySizes s)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ copyArraySizes()

void glslang::TType::copyArraySizes ( const TArraySizes s)
inline
Here is the caller graph for this function:

◆ deepCopy() [1/2]

void glslang::TType::deepCopy ( const TType copyOf)
inline
Here is the caller graph for this function:

◆ deepCopy() [2/2]

void glslang::TType::deepCopy ( const TType copyOf,
TMap< TTypeList *, TTypeList *> &  copiedMap 
)
inlineprotected
Here is the call graph for this function:

◆ getArraySizes() [1/2]

virtual const TArraySizes* glslang::TType::getArraySizes ( ) const
inlinevirtual
Here is the caller graph for this function:

◆ getArraySizes() [2/2]

virtual TArraySizes* glslang::TType::getArraySizes ( )
inlinevirtual

◆ getBasicString() [1/2]

const char* glslang::TType::getBasicString ( ) const
inline
Here is the caller graph for this function:

◆ getBasicString() [2/2]

static const char* glslang::TType::getBasicString ( TBasicType  t)
inlinestatic

◆ getBasicType()

virtual TBasicType glslang::TType::getBasicType ( ) const
inlinevirtual
Here is the caller graph for this function:

◆ getBasicTypeString()

TString glslang::TType::getBasicTypeString ( ) const
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getBuiltInVariableString()

const char* glslang::TType::getBuiltInVariableString ( ) const
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getCompleteString()

TString glslang::TType::getCompleteString ( ) const
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getCumulativeArraySize()

virtual int glslang::TType::getCumulativeArraySize ( ) const
inlinevirtual
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getFieldName()

virtual const TString& glslang::TType::getFieldName ( ) const
inlinevirtual
Here is the caller graph for this function:

◆ getImplicitArraySize()

virtual int glslang::TType::getImplicitArraySize ( ) const
inlinevirtual
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getMatrixCols()

virtual int glslang::TType::getMatrixCols ( ) const
inlinevirtual
Here is the caller graph for this function:

◆ getMatrixRows()

virtual int glslang::TType::getMatrixRows ( ) const
inlinevirtual
Here is the caller graph for this function:

◆ getOuterArrayNode()

virtual TIntermTyped* glslang::TType::getOuterArrayNode ( ) const
inlinevirtual
Here is the call graph for this function:

◆ getOuterArraySize()

virtual int glslang::TType::getOuterArraySize ( ) const
inlinevirtual
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getPrecisionQualifierString()

const char* glslang::TType::getPrecisionQualifierString ( ) const
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getQualifier() [1/2]

virtual TQualifier& glslang::TType::getQualifier ( )
inlinevirtual

◆ getQualifier() [2/2]

virtual const TQualifier& glslang::TType::getQualifier ( ) const
inlinevirtual

◆ getSampler() [1/2]

virtual const TSampler& glslang::TType::getSampler ( ) const
inlinevirtual
Here is the caller graph for this function:

◆ getSampler() [2/2]

virtual TSampler& glslang::TType::getSampler ( )
inlinevirtual

◆ getStorageQualifierString()

const char* glslang::TType::getStorageQualifierString ( ) const
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getStruct()

const TTypeList* glslang::TType::getStruct ( ) const
inline
Here is the caller graph for this function:

◆ getTypeName()

virtual const TString& glslang::TType::getTypeName ( ) const
inlinevirtual
Here is the caller graph for this function:

◆ getVectorSize()

virtual int glslang::TType::getVectorSize ( ) const
inlinevirtual
Here is the caller graph for this function:

◆ getWritableStruct()

TTypeList* glslang::TType::getWritableStruct ( ) const
inline
Here is the caller graph for this function:

◆ hiddenMember()

virtual bool glslang::TType::hiddenMember ( ) const
inlinevirtual
Here is the caller graph for this function:

◆ hideMember()

virtual void glslang::TType::hideMember ( )
inlinevirtual

◆ isArray()

virtual bool glslang::TType::isArray ( ) const
inlinevirtual
Here is the caller graph for this function:

◆ isArrayOfArrays()

virtual bool glslang::TType::isArrayOfArrays ( ) const
inlinevirtual
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isArrayVariablyIndexed()

virtual bool glslang::TType::isArrayVariablyIndexed ( ) const
inlinevirtual
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isBuiltIn()

virtual bool glslang::TType::isBuiltIn ( ) const
inlinevirtual
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isFloatingDomain()

virtual bool glslang::TType::isFloatingDomain ( ) const
inlinevirtual
Here is the caller graph for this function:

◆ isImage()

virtual bool glslang::TType::isImage ( ) const
inlinevirtual
Here is the call graph for this function:

◆ isIntegerDomain()

virtual bool glslang::TType::isIntegerDomain ( ) const
inlinevirtual
Here is the caller graph for this function:

◆ isMatrix()

virtual bool glslang::TType::isMatrix ( ) const
inlinevirtual
Here is the caller graph for this function:

◆ isOpaque()

virtual bool glslang::TType::isOpaque ( ) const
inlinevirtual

◆ isScalar()

virtual bool glslang::TType::isScalar ( ) const
inlinevirtual
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isScalarOrVec1()

virtual bool glslang::TType::isScalarOrVec1 ( ) const
inlinevirtual
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isSizedArray()

virtual bool glslang::TType::isSizedArray ( ) const
inlinevirtual
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isStruct()

virtual bool glslang::TType::isStruct ( ) const
inlinevirtual
Here is the caller graph for this function:

◆ isSubpass()

virtual bool glslang::TType::isSubpass ( ) const
inlinevirtual
Here is the call graph for this function:

◆ isTexture()

virtual bool glslang::TType::isTexture ( ) const
inlinevirtual
Here is the call graph for this function:

◆ isUnsizedArray()

virtual bool glslang::TType::isUnsizedArray ( ) const
inlinevirtual
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isVector()

virtual bool glslang::TType::isVector ( ) const
inlinevirtual
Here is the caller graph for this function:

◆ makeTemporary()

void glslang::TType::makeTemporary ( )
inline
Here is the call graph for this function:

◆ makeVector()

void glslang::TType::makeVector ( )
inline
Here is the caller graph for this function:

◆ operator!=()

bool glslang::TType::operator!= ( const TType right) const
inline
Here is the call graph for this function:

◆ operator=()

TType& glslang::TType::operator= ( const TType type)
protected

◆ operator==()

bool glslang::TType::operator== ( const TType right) const
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sameArrayness()

bool glslang::TType::sameArrayness ( const TType right) const
inline
Here is the caller graph for this function:

◆ sameElementShape()

bool glslang::TType::sameElementShape ( const TType right) const
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sameElementType()

bool glslang::TType::sameElementType ( const TType right) const
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sameInnerArrayness()

bool glslang::TType::sameInnerArrayness ( const TType right) const
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sameStructType()

bool glslang::TType::sameStructType ( const TType right) const
inline
Here is the caller graph for this function:

◆ setArrayVariablyIndexed()

virtual void glslang::TType::setArrayVariablyIndexed ( )
inlinevirtual
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setFieldName()

virtual void glslang::TType::setFieldName ( const TString n)
inlinevirtual
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setStruct()

void glslang::TType::setStruct ( TTypeList s)
inline
Here is the caller graph for this function:

◆ shallowCopy()

void glslang::TType::shallowCopy ( const TType copyOf)
inline
Here is the caller graph for this function:

◆ transferArraySizes()

void glslang::TType::transferArraySizes ( TArraySizes s)
inline
Here is the caller graph for this function:

◆ updateArraySizes()

void glslang::TType::updateArraySizes ( const TType type)
inline
Here is the caller graph for this function:

◆ updateImplicitArraySize()

virtual void glslang::TType::updateImplicitArraySize ( int  size)
inlinevirtual
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ arraySizes

TArraySizes* glslang::TType::arraySizes
protected

◆ basicType

TBasicType glslang::TType::basicType
protected

◆ fieldName

TString* glslang::TType::fieldName
protected

◆ matrixCols

int glslang::TType::matrixCols
protected

◆ matrixRows

int glslang::TType::matrixRows
protected

◆ qualifier

TQualifier glslang::TType::qualifier
protected

◆ sampler

TSampler glslang::TType::sampler
protected

◆ structure

TTypeList* glslang::TType::structure
protected

◆ typeName

TString* glslang::TType::typeName
protected

◆ vector1

bool glslang::TType::vector1
protected

◆ vectorSize

int glslang::TType::vectorSize
protected

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