mirror of
https://github.com/KhronosGroup/glslang
synced 2024-09-19 20:29:54 +00:00
add back layoutLocation to public API
This commit is contained in:
parent
effcbf7893
commit
edca09e3af
@ -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…
Reference in New Issue
Block a user