MCPcopy Create free account
hub / github.com/KhronosGroup/glslang / sameArrayness

Method sameArrayness

glslang/Include/Types.h:2901–2908  ·  view source on GitHub ↗

See if two type's arrayness match

Source from the content-addressed store, hash-verified

2899
2900 // See if two type's arrayness match
2901 bool sameArrayness(const TType& right) const
2902 {
2903 return ((arraySizes == nullptr && right.arraySizes == nullptr) ||
2904 (arraySizes != nullptr && right.arraySizes != nullptr &&
2905 (*arraySizes == *right.arraySizes ||
2906 (arraySizes->isImplicitlySized() && right.arraySizes->isDefaultImplicitlySized()) ||
2907 (right.arraySizes->isImplicitlySized() && arraySizes->isDefaultImplicitlySized()))));
2908 }
2909
2910 // See if two type's arrayness match in everything except their outer dimension
2911 bool sameInnerArrayness(const TType& right) const

Callers 2

redeclareBuiltinBlockMethod · 0.80
mergeErrorCheckMethod · 0.80

Calls 2

isImplicitlySizedMethod · 0.80

Tested by

no test coverage detected