@ -76,6 +76,7 @@ AbstractShaderProgramTest::AbstractShaderProgramTest() {
void AbstractShaderProgramTest : : attributeScalar ( ) {
typedef AbstractShaderProgram : : Attribute < 3 , Float > Attribute ;
CORRADE_VERIFY ( ( std : : is_same < Attribute : : ScalarType , Float > { } ) ) ;
CORRADE_COMPARE ( Attribute : : Location , 3 ) ;
CORRADE_COMPARE ( Attribute : : VectorCount , 1 ) ;
@ -95,6 +96,7 @@ void AbstractShaderProgramTest::attributeScalar() {
void AbstractShaderProgramTest : : attributeScalarInt ( ) {
# ifndef MAGNUM_TARGET_GLES2
typedef AbstractShaderProgram : : Attribute < 3 , Int > Attribute ;
CORRADE_VERIFY ( ( std : : is_same < Attribute : : ScalarType , Int > { } ) ) ;
CORRADE_COMPARE ( Attribute : : VectorCount , 1 ) ;
/* Default constructor */
@ -112,6 +114,7 @@ void AbstractShaderProgramTest::attributeScalarInt() {
void AbstractShaderProgramTest : : attributeScalarUnsignedInt ( ) {
# ifndef MAGNUM_TARGET_GLES2
typedef AbstractShaderProgram : : Attribute < 3 , UnsignedInt > Attribute ;
CORRADE_VERIFY ( ( std : : is_same < Attribute : : ScalarType , UnsignedInt > { } ) ) ;
CORRADE_COMPARE ( Attribute : : VectorCount , 1 ) ;
/* Default constructor */
@ -129,6 +132,7 @@ void AbstractShaderProgramTest::attributeScalarUnsignedInt() {
void AbstractShaderProgramTest : : attributeScalarDouble ( ) {
# ifndef MAGNUM_TARGET_GLES
typedef AbstractShaderProgram : : Attribute < 3 , Double > Attribute ;
CORRADE_VERIFY ( ( std : : is_same < Attribute : : ScalarType , Double > { } ) ) ;
CORRADE_COMPARE ( Attribute : : VectorCount , 1 ) ;
/* Default constructor */
@ -141,6 +145,7 @@ void AbstractShaderProgramTest::attributeScalarDouble() {
void AbstractShaderProgramTest : : attributeVector ( ) {
typedef AbstractShaderProgram : : Attribute < 3 , Vector3 > Attribute ;
CORRADE_VERIFY ( ( std : : is_same < Attribute : : ScalarType , Float > { } ) ) ;
CORRADE_COMPARE ( Attribute : : VectorCount , 1 ) ;
/* Default constructor */
@ -164,6 +169,7 @@ void AbstractShaderProgramTest::attributeVector() {
void AbstractShaderProgramTest : : attributeVectorInt ( ) {
# ifndef MAGNUM_TARGET_GLES2
typedef AbstractShaderProgram : : Attribute < 3 , Vector2i > Attribute ;
CORRADE_VERIFY ( ( std : : is_same < Attribute : : ScalarType , Int > { } ) ) ;
CORRADE_COMPARE ( Attribute : : VectorCount , 1 ) ;
/* Default constructor */
@ -183,6 +189,7 @@ void AbstractShaderProgramTest::attributeVectorInt() {
void AbstractShaderProgramTest : : attributeVectorUnsignedInt ( ) {
# ifndef MAGNUM_TARGET_GLES2
typedef AbstractShaderProgram : : Attribute < 3 , Vector4ui > Attribute ;
CORRADE_VERIFY ( ( std : : is_same < Attribute : : ScalarType , UnsignedInt > { } ) ) ;
CORRADE_COMPARE ( Attribute : : VectorCount , 1 ) ;
/* Default constructor */
@ -202,6 +209,7 @@ void AbstractShaderProgramTest::attributeVectorUnsignedInt() {
void AbstractShaderProgramTest : : attributeVectorDouble ( ) {
# ifndef MAGNUM_TARGET_GLES
typedef AbstractShaderProgram : : Attribute < 3 , Vector2d > Attribute ;
CORRADE_VERIFY ( ( std : : is_same < Attribute : : ScalarType , Double > { } ) ) ;
CORRADE_COMPARE ( Attribute : : VectorCount , 1 ) ;
/* Default constructor */
@ -220,6 +228,7 @@ void AbstractShaderProgramTest::attributeVectorDouble() {
void AbstractShaderProgramTest : : attributeVector4 ( ) {
typedef AbstractShaderProgram : : Attribute < 3 , Vector4 > Attribute ;
CORRADE_VERIFY ( ( std : : is_same < Attribute : : ScalarType , Float > { } ) ) ;
CORRADE_COMPARE ( Attribute : : VectorCount , 1 ) ;
/* Custom type */
@ -235,6 +244,7 @@ void AbstractShaderProgramTest::attributeVector4() {
void AbstractShaderProgramTest : : attributeVectorBGRA ( ) {
# ifndef MAGNUM_TARGET_GLES
typedef AbstractShaderProgram : : Attribute < 3 , Vector4 > Attribute ;
CORRADE_VERIFY ( ( std : : is_same < Attribute : : ScalarType , Float > { } ) ) ;
CORRADE_COMPARE ( Attribute : : VectorCount , 1 ) ;
/* BGRA */
@ -247,6 +257,7 @@ void AbstractShaderProgramTest::attributeVectorBGRA() {
void AbstractShaderProgramTest : : attributeMatrixNxN ( ) {
typedef AbstractShaderProgram : : Attribute < 3 , Matrix3 > Attribute ;
CORRADE_VERIFY ( ( std : : is_same < Attribute : : ScalarType , Float > { } ) ) ;
CORRADE_COMPARE ( Attribute : : VectorCount , 3 ) ;
/* Default constructor */
@ -259,6 +270,7 @@ void AbstractShaderProgramTest::attributeMatrixNxN() {
# ifndef MAGNUM_TARGET_GLES2
void AbstractShaderProgramTest : : attributeMatrixMxN ( ) {
typedef AbstractShaderProgram : : Attribute < 3 , Matrix3x4 > Attribute ;
CORRADE_VERIFY ( ( std : : is_same < Attribute : : ScalarType , Float > { } ) ) ;
CORRADE_COMPARE ( Attribute : : VectorCount , 3 ) ;
/* Default constructor */
@ -272,6 +284,7 @@ void AbstractShaderProgramTest::attributeMatrixMxN() {
void AbstractShaderProgramTest : : attributeMatrixNxNd ( ) {
# ifndef MAGNUM_TARGET_GLES
typedef AbstractShaderProgram : : Attribute < 3 , Matrix4d > Attribute ;
CORRADE_VERIFY ( ( std : : is_same < Attribute : : ScalarType , Double > { } ) ) ;
CORRADE_COMPARE ( Attribute : : VectorCount , 4 ) ;
/* Default constructor */
@ -287,6 +300,7 @@ void AbstractShaderProgramTest::attributeMatrixNxNd() {
void AbstractShaderProgramTest : : attributeMatrixMxNd ( ) {
# ifndef MAGNUM_TARGET_GLES
typedef AbstractShaderProgram : : Attribute < 3 , Matrix4x2d > Attribute ;
CORRADE_VERIFY ( ( std : : is_same < Attribute : : ScalarType , Double > { } ) ) ;
CORRADE_COMPARE ( Attribute : : VectorCount , 4 ) ;
/* Default constructor */