add back layoutLocation to public API
This commit is contained in:
parent
effcbf7893
commit
edca09e3af
2 changed files with 4 additions and 0 deletions
|
|
@ -2105,6 +2105,8 @@ const char* TProgram::getInfoDebugLog()
|
||||||
// Reflection implementation.
|
// Reflection implementation.
|
||||||
//
|
//
|
||||||
|
|
||||||
|
unsigned int TObjectReflection::layoutLocation() const { return type->getQualifier().layoutLocation; }
|
||||||
|
|
||||||
bool TProgram::buildReflection(int opts)
|
bool TProgram::buildReflection(int opts)
|
||||||
{
|
{
|
||||||
if (! linked || reflection != nullptr)
|
if (! linked || reflection != nullptr)
|
||||||
|
|
|
||||||
|
|
@ -745,6 +745,8 @@ public:
|
||||||
GLSLANG_EXPORT void dump() const;
|
GLSLANG_EXPORT void dump() const;
|
||||||
static TObjectReflection badReflection() { return TObjectReflection(); }
|
static TObjectReflection badReflection() { return TObjectReflection(); }
|
||||||
|
|
||||||
|
GLSLANG_EXPORT unsigned int layoutLocation() const;
|
||||||
|
|
||||||
std::string name;
|
std::string name;
|
||||||
int offset;
|
int offset;
|
||||||
int glDefineType;
|
int glDefineType;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue