|
|
|
|
@ -363,15 +363,15 @@ void AbstractShaderProgram::uniformImplementationDefault(const GLint location, c
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void AbstractShaderProgram::uniformImplementationSSO(const GLint location, const GLsizei count, const GLfloat* const values) { |
|
|
|
|
/** @todo Enable when extension loader for ES is available */ |
|
|
|
|
#ifndef MAGNUM_TARGET_GLES |
|
|
|
|
glProgramUniform1fv(_id, location, count, values); |
|
|
|
|
#elif !defined(CORRADE_TARGET_EMSCRIPTEN) && !defined(CORRADE_TARGET_NACL) |
|
|
|
|
glProgramUniform1fvEXT(_id, location, count, values); |
|
|
|
|
#else |
|
|
|
|
CORRADE_INTERNAL_ASSERT(false); |
|
|
|
|
//glProgramUniform1fvEXT(_id, location, count, values);
|
|
|
|
|
static_cast<void>(location); |
|
|
|
|
static_cast<void>(count); |
|
|
|
|
static_cast<void>(values); |
|
|
|
|
CORRADE_ASSERT_UNREACHABLE(); |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -391,15 +391,15 @@ void AbstractShaderProgram::uniformImplementationDefault(const GLint location, c
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void AbstractShaderProgram::uniformImplementationSSO(const GLint location, const GLsizei count, const Math::Vector<2, GLfloat>* const values) { |
|
|
|
|
/** @todo Enable when extension loader for ES is available */ |
|
|
|
|
#ifndef MAGNUM_TARGET_GLES |
|
|
|
|
glProgramUniform2fv(_id, location, count, values[0].data()); |
|
|
|
|
#elif !defined(CORRADE_TARGET_EMSCRIPTEN) && !defined(CORRADE_TARGET_NACL) |
|
|
|
|
glProgramUniform2fvEXT(_id, location, count, values[0].data()); |
|
|
|
|
#else |
|
|
|
|
CORRADE_INTERNAL_ASSERT(false); |
|
|
|
|
//glProgramUniform2fvEXT(_id, location, count, values[0].data());
|
|
|
|
|
static_cast<void>(location); |
|
|
|
|
static_cast<void>(count); |
|
|
|
|
static_cast<void>(values); |
|
|
|
|
CORRADE_ASSERT_UNREACHABLE(); |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -419,15 +419,15 @@ void AbstractShaderProgram::uniformImplementationDefault(const GLint location, c
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void AbstractShaderProgram::uniformImplementationSSO(const GLint location, const GLsizei count, const Math::Vector<3, GLfloat>* const values) { |
|
|
|
|
/** @todo Enable when extension loader for ES is available */ |
|
|
|
|
#ifndef MAGNUM_TARGET_GLES |
|
|
|
|
glProgramUniform3fv(_id, location, count, values[0].data()); |
|
|
|
|
#elif !defined(CORRADE_TARGET_EMSCRIPTEN) && !defined(CORRADE_TARGET_NACL) |
|
|
|
|
glProgramUniform3fvEXT(_id, location, count, values[0].data()); |
|
|
|
|
#else |
|
|
|
|
CORRADE_INTERNAL_ASSERT(false); |
|
|
|
|
//glProgramUniform3fvEXT(_id, location, count, values[0].data());
|
|
|
|
|
static_cast<void>(location); |
|
|
|
|
static_cast<void>(count); |
|
|
|
|
static_cast<void>(values); |
|
|
|
|
CORRADE_ASSERT_UNREACHABLE(); |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -447,15 +447,15 @@ void AbstractShaderProgram::uniformImplementationDefault(const GLint location, c
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void AbstractShaderProgram::uniformImplementationSSO(const GLint location, const GLsizei count, const Math::Vector<4, GLfloat>* const values) { |
|
|
|
|
/** @todo Enable when extension loader for ES is available */ |
|
|
|
|
#ifndef MAGNUM_TARGET_GLES |
|
|
|
|
glProgramUniform4fv(_id, location, count, values[0].data()); |
|
|
|
|
#elif !defined(CORRADE_TARGET_EMSCRIPTEN) && !defined(CORRADE_TARGET_NACL) |
|
|
|
|
glProgramUniform4fvEXT(_id, location, count, values[0].data()); |
|
|
|
|
#else |
|
|
|
|
CORRADE_INTERNAL_ASSERT(false); |
|
|
|
|
//glProgramUniform4fvEXT(_id, location, count, values[0].data());
|
|
|
|
|
static_cast<void>(location); |
|
|
|
|
static_cast<void>(count); |
|
|
|
|
static_cast<void>(values); |
|
|
|
|
CORRADE_ASSERT_UNREACHABLE(); |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -475,15 +475,15 @@ void AbstractShaderProgram::uniformImplementationDefault(const GLint location, c
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void AbstractShaderProgram::uniformImplementationSSO(const GLint location, const GLsizei count, const GLint* const values) { |
|
|
|
|
/** @todo Enable when extension loader for ES is available */ |
|
|
|
|
#ifndef MAGNUM_TARGET_GLES |
|
|
|
|
glProgramUniform1iv(_id, location, count, values); |
|
|
|
|
#elif !defined(CORRADE_TARGET_EMSCRIPTEN) && !defined(CORRADE_TARGET_NACL) |
|
|
|
|
glProgramUniform1ivEXT(_id, location, count, values); |
|
|
|
|
#else |
|
|
|
|
CORRADE_INTERNAL_ASSERT(false); |
|
|
|
|
//glProgramUniform1ivEXT(_id, location, count, values);
|
|
|
|
|
static_cast<void>(location); |
|
|
|
|
static_cast<void>(count); |
|
|
|
|
static_cast<void>(values); |
|
|
|
|
CORRADE_ASSERT_UNREACHABLE(); |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -503,15 +503,15 @@ void AbstractShaderProgram::uniformImplementationDefault(const GLint location, c
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void AbstractShaderProgram::uniformImplementationSSO(const GLint location, const GLsizei count, const Math::Vector<2, GLint>* const values) { |
|
|
|
|
/** @todo Enable when extension loader for ES is available */ |
|
|
|
|
#ifndef MAGNUM_TARGET_GLES |
|
|
|
|
glProgramUniform2iv(_id, location, count, values[0].data()); |
|
|
|
|
#elif !defined(CORRADE_TARGET_EMSCRIPTEN) && !defined(CORRADE_TARGET_NACL) |
|
|
|
|
glProgramUniform2ivEXT(_id, location, count, values[0].data()); |
|
|
|
|
#else |
|
|
|
|
CORRADE_INTERNAL_ASSERT(false); |
|
|
|
|
//glProgramUniform2ivEXT(_id, location, count, values[0].data());
|
|
|
|
|
static_cast<void>(location); |
|
|
|
|
static_cast<void>(count); |
|
|
|
|
static_cast<void>(values); |
|
|
|
|
CORRADE_ASSERT_UNREACHABLE(); |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -531,15 +531,15 @@ void AbstractShaderProgram::uniformImplementationDefault(const GLint location, c
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void AbstractShaderProgram::uniformImplementationSSO(const GLint location, const GLsizei count, const Math::Vector<3, GLint>* const values) { |
|
|
|
|
/** @todo Enable when extension loader for ES is available */ |
|
|
|
|
#ifndef MAGNUM_TARGET_GLES |
|
|
|
|
glProgramUniform3iv(_id, location, count, values[0].data()); |
|
|
|
|
#elif !defined(CORRADE_TARGET_EMSCRIPTEN) && !defined(CORRADE_TARGET_NACL) |
|
|
|
|
glProgramUniform3ivEXT(_id, location, count, values[0].data()); |
|
|
|
|
#else |
|
|
|
|
CORRADE_INTERNAL_ASSERT(false); |
|
|
|
|
//glProgramUniform3ivEXT(_id, location, count, values[0].data());
|
|
|
|
|
static_cast<void>(location); |
|
|
|
|
static_cast<void>(count); |
|
|
|
|
static_cast<void>(values); |
|
|
|
|
CORRADE_ASSERT_UNREACHABLE(); |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -559,15 +559,15 @@ void AbstractShaderProgram::uniformImplementationDefault(const GLint location, c
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void AbstractShaderProgram::uniformImplementationSSO(const GLint location, const GLsizei count, const Math::Vector<4, GLint>* const values) { |
|
|
|
|
/** @todo Enable when extension loader for ES is available */ |
|
|
|
|
#ifndef MAGNUM_TARGET_GLES |
|
|
|
|
glProgramUniform4iv(_id, location, count, values[0].data()); |
|
|
|
|
#elif !defined(CORRADE_TARGET_EMSCRIPTEN) && !defined(CORRADE_TARGET_NACL) |
|
|
|
|
glProgramUniform4ivEXT(_id, location, count, values[0].data()); |
|
|
|
|
#else |
|
|
|
|
CORRADE_INTERNAL_ASSERT(false); |
|
|
|
|
//glProgramUniform4ivEXT(_id, location, count, values[0].data());
|
|
|
|
|
static_cast<void>(location); |
|
|
|
|
static_cast<void>(count); |
|
|
|
|
static_cast<void>(values); |
|
|
|
|
CORRADE_ASSERT_UNREACHABLE(); |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -588,15 +588,15 @@ void AbstractShaderProgram::uniformImplementationDefault(const GLint location, c
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void AbstractShaderProgram::uniformImplementationSSO(const GLint location, const GLsizei count, const GLuint* const values) { |
|
|
|
|
/** @todo Enable when extension loader for ES is available */ |
|
|
|
|
#ifndef MAGNUM_TARGET_GLES |
|
|
|
|
glProgramUniform1uiv(_id, location, count, values); |
|
|
|
|
#elif !defined(CORRADE_TARGET_EMSCRIPTEN) && !defined(CORRADE_TARGET_NACL) |
|
|
|
|
glProgramUniform1uivEXT(_id, location, count, values); |
|
|
|
|
#else |
|
|
|
|
CORRADE_INTERNAL_ASSERT(false); |
|
|
|
|
//glProgramUniform1uivEXT(_id, location, count, values);
|
|
|
|
|
static_cast<void>(location); |
|
|
|
|
static_cast<void>(count); |
|
|
|
|
static_cast<void>(values); |
|
|
|
|
CORRADE_ASSERT_UNREACHABLE(); |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -616,15 +616,15 @@ void AbstractShaderProgram::uniformImplementationDefault(const GLint location, c
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void AbstractShaderProgram::uniformImplementationSSO(const GLint location, const GLsizei count, const Math::Vector<2, GLuint>* const values) { |
|
|
|
|
/** @todo Enable when extension loader for ES is available */ |
|
|
|
|
#ifndef MAGNUM_TARGET_GLES |
|
|
|
|
glProgramUniform2uiv(_id, location, count, values[0].data()); |
|
|
|
|
#elif !defined(CORRADE_TARGET_EMSCRIPTEN) && !defined(CORRADE_TARGET_NACL) |
|
|
|
|
glProgramUniform2uivEXT(_id, location, count, values[0].data()); |
|
|
|
|
#else |
|
|
|
|
CORRADE_INTERNAL_ASSERT(false); |
|
|
|
|
//glProgramUniform2uivEXT(_id, location, count, values[0].data());
|
|
|
|
|
static_cast<void>(location); |
|
|
|
|
static_cast<void>(count); |
|
|
|
|
static_cast<void>(values); |
|
|
|
|
CORRADE_ASSERT_UNREACHABLE(); |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -644,15 +644,15 @@ void AbstractShaderProgram::uniformImplementationDefault(const GLint location, c
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void AbstractShaderProgram::uniformImplementationSSO(const GLint location, const GLsizei count, const Math::Vector<3, GLuint>* const values) { |
|
|
|
|
/** @todo Enable when extension loader for ES is available */ |
|
|
|
|
#ifndef MAGNUM_TARGET_GLES |
|
|
|
|
glProgramUniform3uiv(_id, location, count, values[0].data()); |
|
|
|
|
#elif !defined(CORRADE_TARGET_EMSCRIPTEN) && !defined(CORRADE_TARGET_NACL) |
|
|
|
|
glProgramUniform3uivEXT(_id, location, count, values[0].data()); |
|
|
|
|
#else |
|
|
|
|
CORRADE_INTERNAL_ASSERT(false); |
|
|
|
|
//glProgramUniform3uivEXT(_id, location, count, values[0].data());
|
|
|
|
|
static_cast<void>(location); |
|
|
|
|
static_cast<void>(count); |
|
|
|
|
static_cast<void>(values); |
|
|
|
|
CORRADE_ASSERT_UNREACHABLE(); |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -672,15 +672,15 @@ void AbstractShaderProgram::uniformImplementationDefault(const GLint location, c
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void AbstractShaderProgram::uniformImplementationSSO(const GLint location, const GLsizei count, const Math::Vector<4, GLuint>* const values) { |
|
|
|
|
/** @todo Enable when extension loader for ES is available */ |
|
|
|
|
#ifndef MAGNUM_TARGET_GLES |
|
|
|
|
glProgramUniform4uiv(_id, location, count, values[0].data()); |
|
|
|
|
#elif !defined(CORRADE_TARGET_EMSCRIPTEN) && !defined(CORRADE_TARGET_NACL) |
|
|
|
|
glProgramUniform4uivEXT(_id, location, count, values[0].data()); |
|
|
|
|
#else |
|
|
|
|
CORRADE_INTERNAL_ASSERT(false); |
|
|
|
|
//glProgramUniform4uivEXT(_id, location, count, values[0].data());
|
|
|
|
|
static_cast<void>(location); |
|
|
|
|
static_cast<void>(count); |
|
|
|
|
static_cast<void>(values); |
|
|
|
|
CORRADE_ASSERT_UNREACHABLE(); |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -771,15 +771,15 @@ void AbstractShaderProgram::uniformImplementationDefault(const GLint location, c
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void AbstractShaderProgram::uniformImplementationSSO(const GLint location, const GLsizei count, const Math::RectangularMatrix<2, 2, GLfloat>* const values) { |
|
|
|
|
/** @todo Enable when extension loader for ES is available */ |
|
|
|
|
#ifndef MAGNUM_TARGET_GLES |
|
|
|
|
glProgramUniformMatrix2fv(_id, location, count, GL_FALSE, values[0].data()); |
|
|
|
|
#elif !defined(CORRADE_TARGET_EMSCRIPTEN) && !defined(CORRADE_TARGET_NACL) |
|
|
|
|
glProgramUniformMatrix2fvEXT(_id, location, count, GL_FALSE, values[0].data()); |
|
|
|
|
#else |
|
|
|
|
CORRADE_INTERNAL_ASSERT(false); |
|
|
|
|
//glProgramUniformMatrix2fvEXT(_id, location, count, GL_FALSE, values[0].data());
|
|
|
|
|
static_cast<void>(location); |
|
|
|
|
static_cast<void>(count); |
|
|
|
|
static_cast<void>(values); |
|
|
|
|
CORRADE_ASSERT_UNREACHABLE(); |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -799,15 +799,15 @@ void AbstractShaderProgram::uniformImplementationDefault(const GLint location, c
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void AbstractShaderProgram::uniformImplementationSSO(const GLint location, const GLsizei count, const Math::RectangularMatrix<3, 3, GLfloat>* const values) { |
|
|
|
|
/** @todo Enable when extension loader for ES is available */ |
|
|
|
|
#ifndef MAGNUM_TARGET_GLES |
|
|
|
|
glProgramUniformMatrix3fv(_id, location, count, GL_FALSE, values[0].data()); |
|
|
|
|
#elif !defined(CORRADE_TARGET_EMSCRIPTEN) && !defined(CORRADE_TARGET_NACL) |
|
|
|
|
glProgramUniformMatrix3fvEXT(_id, location, count, GL_FALSE, values[0].data()); |
|
|
|
|
#else |
|
|
|
|
CORRADE_INTERNAL_ASSERT(false); |
|
|
|
|
//glProgramUniformMatrix3fvEXT(_id, location, count, GL_FALSE, values[0].data());
|
|
|
|
|
static_cast<void>(location); |
|
|
|
|
static_cast<void>(count); |
|
|
|
|
static_cast<void>(values); |
|
|
|
|
CORRADE_ASSERT_UNREACHABLE(); |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -827,15 +827,15 @@ void AbstractShaderProgram::uniformImplementationDefault(const GLint location, c
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void AbstractShaderProgram::uniformImplementationSSO(const GLint location, const GLsizei count, const Math::RectangularMatrix<4, 4, GLfloat>* const values) { |
|
|
|
|
/** @todo Enable when extension loader for ES is available */ |
|
|
|
|
#ifndef MAGNUM_TARGET_GLES |
|
|
|
|
glProgramUniformMatrix4fv(_id, location, count, GL_FALSE, values[0].data()); |
|
|
|
|
#elif !defined(CORRADE_TARGET_EMSCRIPTEN) && !defined(CORRADE_TARGET_NACL) |
|
|
|
|
glProgramUniformMatrix4fvEXT(_id, location, count, GL_FALSE, values[0].data()); |
|
|
|
|
#else |
|
|
|
|
CORRADE_INTERNAL_ASSERT(false); |
|
|
|
|
//glProgramUniformMatrix4fvEXT(_id, location, count, GL_FALSE, values[0].data());
|
|
|
|
|
static_cast<void>(location); |
|
|
|
|
static_cast<void>(count); |
|
|
|
|
static_cast<void>(values); |
|
|
|
|
CORRADE_ASSERT_UNREACHABLE(); |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -856,15 +856,15 @@ void AbstractShaderProgram::uniformImplementationDefault(const GLint location, c
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void AbstractShaderProgram::uniformImplementationSSO(const GLint location, const GLsizei count, const Math::RectangularMatrix<2, 3, GLfloat>* const values) { |
|
|
|
|
/** @todo Enable when extension loader for ES is available */ |
|
|
|
|
#ifndef MAGNUM_TARGET_GLES |
|
|
|
|
glProgramUniformMatrix2x3fv(_id, location, count, GL_FALSE, values[0].data()); |
|
|
|
|
#elif !defined(CORRADE_TARGET_EMSCRIPTEN) && !defined(CORRADE_TARGET_NACL) |
|
|
|
|
glProgramUniformMatrix2x3fvEXT(_id, location, count, GL_FALSE, values[0].data()); |
|
|
|
|
#else |
|
|
|
|
CORRADE_INTERNAL_ASSERT(false); |
|
|
|
|
//glProgramUniformMatrix2x3fvEXT(_id, location, count, GL_FALSE, values[0].data());
|
|
|
|
|
static_cast<void>(location); |
|
|
|
|
static_cast<void>(count); |
|
|
|
|
static_cast<void>(values); |
|
|
|
|
CORRADE_ASSERT_UNREACHABLE(); |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -884,15 +884,15 @@ void AbstractShaderProgram::uniformImplementationDefault(const GLint location, c
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void AbstractShaderProgram::uniformImplementationSSO(const GLint location, const GLsizei count, const Math::RectangularMatrix<3, 2, GLfloat>* const values) { |
|
|
|
|
/** @todo Enable when extension loader for ES is available */ |
|
|
|
|
#ifndef MAGNUM_TARGET_GLES |
|
|
|
|
glProgramUniformMatrix3x2fv(_id, location, count, GL_FALSE, values[0].data()); |
|
|
|
|
#elif !defined(CORRADE_TARGET_EMSCRIPTEN) && !defined(CORRADE_TARGET_NACL) |
|
|
|
|
glProgramUniformMatrix3x2fv(_id, location, count, GL_FALSE, values[0].data()); |
|
|
|
|
#else |
|
|
|
|
CORRADE_INTERNAL_ASSERT(false); |
|
|
|
|
//glProgramUniformMatrix3x2fv(_id, location, count, GL_FALSE, values[0].data());
|
|
|
|
|
static_cast<void>(location); |
|
|
|
|
static_cast<void>(count); |
|
|
|
|
static_cast<void>(values); |
|
|
|
|
CORRADE_ASSERT_UNREACHABLE(); |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -912,15 +912,15 @@ void AbstractShaderProgram::uniformImplementationDefault(const GLint location, c
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void AbstractShaderProgram::uniformImplementationSSO(const GLint location, const GLsizei count, const Math::RectangularMatrix<2, 4, GLfloat>* const values) { |
|
|
|
|
/** @todo Enable when extension loader for ES is available */ |
|
|
|
|
#ifndef MAGNUM_TARGET_GLES |
|
|
|
|
glProgramUniformMatrix2x4fv(_id, location, count, GL_FALSE, values[0].data()); |
|
|
|
|
#elif !defined(CORRADE_TARGET_EMSCRIPTEN) && !defined(CORRADE_TARGET_NACL) |
|
|
|
|
glProgramUniformMatrix2x4fvEXT(_id, location, count, GL_FALSE, values[0].data()); |
|
|
|
|
#else |
|
|
|
|
CORRADE_INTERNAL_ASSERT(false); |
|
|
|
|
//glProgramUniformMatrix2x4fvEXT(_id, location, count, GL_FALSE, values[0].data());
|
|
|
|
|
static_cast<void>(location); |
|
|
|
|
static_cast<void>(count); |
|
|
|
|
static_cast<void>(values); |
|
|
|
|
CORRADE_ASSERT_UNREACHABLE(); |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -940,15 +940,15 @@ void AbstractShaderProgram::uniformImplementationDefault(const GLint location, c
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void AbstractShaderProgram::uniformImplementationSSO(const GLint location, const GLsizei count, const Math::RectangularMatrix<4, 2, GLfloat>* const values) { |
|
|
|
|
/** @todo Enable when extension loader for ES is available */ |
|
|
|
|
#ifndef MAGNUM_TARGET_GLES |
|
|
|
|
glProgramUniformMatrix4x2fv(_id, location, count, GL_FALSE, values[0].data()); |
|
|
|
|
#elif !defined(CORRADE_TARGET_EMSCRIPTEN) && !defined(CORRADE_TARGET_NACL) |
|
|
|
|
glProgramUniformMatrix4x2fvEXT(_id, location, count, GL_FALSE, values[0].data()); |
|
|
|
|
#else |
|
|
|
|
CORRADE_INTERNAL_ASSERT(false); |
|
|
|
|
//glProgramUniformMatrix4x2fvEXT(_id, location, count, GL_FALSE, values[0].data());
|
|
|
|
|
static_cast<void>(location); |
|
|
|
|
static_cast<void>(count); |
|
|
|
|
static_cast<void>(values); |
|
|
|
|
CORRADE_ASSERT_UNREACHABLE(); |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -968,15 +968,15 @@ void AbstractShaderProgram::uniformImplementationDefault(const GLint location, c
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void AbstractShaderProgram::uniformImplementationSSO(const GLint location, const GLsizei count, const Math::RectangularMatrix<3, 4, GLfloat>* const values) { |
|
|
|
|
/** @todo Enable when extension loader for ES is available */ |
|
|
|
|
#ifndef MAGNUM_TARGET_GLES |
|
|
|
|
glProgramUniformMatrix3x4fv(_id, location, count, GL_FALSE, values[0].data()); |
|
|
|
|
#elif !defined(CORRADE_TARGET_EMSCRIPTEN) && !defined(CORRADE_TARGET_NACL) |
|
|
|
|
glProgramUniformMatrix3x4fvEXT(_id, location, count, GL_FALSE, values[0].data()); |
|
|
|
|
#else |
|
|
|
|
CORRADE_INTERNAL_ASSERT(false); |
|
|
|
|
//glProgramUniformMatrix3x4fvEXT(_id, location, count, GL_FALSE, values[0].data());
|
|
|
|
|
static_cast<void>(location); |
|
|
|
|
static_cast<void>(count); |
|
|
|
|
static_cast<void>(values); |
|
|
|
|
CORRADE_ASSERT_UNREACHABLE(); |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -996,15 +996,15 @@ void AbstractShaderProgram::uniformImplementationDefault(const GLint location, c
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void AbstractShaderProgram::uniformImplementationSSO(const GLint location, const GLsizei count, const Math::RectangularMatrix<4, 3, GLfloat>* const values) { |
|
|
|
|
/** @todo Enable when extension loader for ES is available */ |
|
|
|
|
#ifndef MAGNUM_TARGET_GLES |
|
|
|
|
glProgramUniformMatrix4x3fv(_id, location, count, GL_FALSE, values[0].data()); |
|
|
|
|
#elif !defined(CORRADE_TARGET_EMSCRIPTEN) && !defined(CORRADE_TARGET_NACL) |
|
|
|
|
glProgramUniformMatrix4x3fvEXT(_id, location, count, GL_FALSE, values[0].data()); |
|
|
|
|
#else |
|
|
|
|
CORRADE_INTERNAL_ASSERT(false); |
|
|
|
|
//glProgramUniformMatrix4x3fvEXT(_id, location, count, GL_FALSE, values[0].data());
|
|
|
|
|
static_cast<void>(location); |
|
|
|
|
static_cast<void>(count); |
|
|
|
|
static_cast<void>(values); |
|
|
|
|
CORRADE_ASSERT_UNREACHABLE(); |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|