mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-09 04:38:30 +09:00
[Chore] (MG_State/ProgramObject): rename attrib to vertex in for clarity
This commit is contained in:
@@ -290,7 +290,7 @@ namespace MobileGL {
|
||||
// if (location < 0) continue;
|
||||
// if (location >= (int)m_attribs.size()) {
|
||||
// if (location >= maxAttribs) {
|
||||
// MGLOG_W("ProgramObject %u: SetExplicitAttribLocation: requested location %d >= "
|
||||
// MGLOG_W("ProgramObject %u: SetExplicitVertexInLocation: requested location %d >= "
|
||||
// "GL_MAX_VERTEX_ATTRIBS (%d). Ignored for attribute '%s'.",
|
||||
// m_externalIndex, location, maxAttribs, name.c_str());
|
||||
// continue;
|
||||
@@ -465,11 +465,11 @@ namespace MobileGL {
|
||||
// will probably be useful when multi-threaded compilation
|
||||
}
|
||||
|
||||
void ProgramObject::SetExplicitAttribLocation(Uint index, const char* name) {
|
||||
MGLOG_D("ProgramObject %u: SetExplicitAttribLocation called name='%s' index=%u", m_externalIndex, name,
|
||||
void ProgramObject::SetExplicitVertexInLocation(Uint index, const char* name) {
|
||||
MGLOG_D("ProgramObject %u: SetExplicitVertexInLocation called name='%s' index=%u", m_externalIndex, name,
|
||||
index);
|
||||
m_explicitAttribLocations[name] = index;
|
||||
MGLOG_D("ProgramObject %u: SetExplicitAttribLocation - stored explicit location for '%s' -> %u",
|
||||
MGLOG_D("ProgramObject %u: SetExplicitVertexInLocation - stored explicit location for '%s' -> %u",
|
||||
m_externalIndex, name, index);
|
||||
}
|
||||
} // namespace GLState
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace MobileGL {
|
||||
void Link();
|
||||
void MarkAsDeleted();
|
||||
|
||||
void SetExplicitAttribLocation(Uint index, const char* name);
|
||||
void SetExplicitVertexInLocation(Uint index, const char* name);
|
||||
|
||||
Vector<SharedPtr<ShaderObject>>& GetAttachedShaders();
|
||||
const String& GetInfoLog() const { return m_infoLog; }
|
||||
|
||||
Reference in New Issue
Block a user