|
|
|
|
@ -45,6 +45,11 @@ class TextureArrayGLTest: public AbstractOpenGLTester {
|
|
|
|
|
#endif |
|
|
|
|
void construct2D(); |
|
|
|
|
|
|
|
|
|
#ifndef MAGNUM_TARGET_GLES |
|
|
|
|
void bind1D(); |
|
|
|
|
#endif |
|
|
|
|
void bind2D(); |
|
|
|
|
|
|
|
|
|
#ifndef MAGNUM_TARGET_GLES |
|
|
|
|
void sampling1D(); |
|
|
|
|
#endif |
|
|
|
|
@ -105,6 +110,11 @@ TextureArrayGLTest::TextureArrayGLTest() {
|
|
|
|
|
#endif |
|
|
|
|
&TextureArrayGLTest::construct2D, |
|
|
|
|
|
|
|
|
|
#ifndef MAGNUM_TARGET_GLES |
|
|
|
|
&TextureArrayGLTest::bind1D, |
|
|
|
|
#endif |
|
|
|
|
&TextureArrayGLTest::bind2D, |
|
|
|
|
|
|
|
|
|
#ifndef MAGNUM_TARGET_GLES |
|
|
|
|
&TextureArrayGLTest::sampling1D, |
|
|
|
|
#endif |
|
|
|
|
@ -189,6 +199,30 @@ void TextureArrayGLTest::construct2D() {
|
|
|
|
|
MAGNUM_VERIFY_NO_ERROR(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#ifndef MAGNUM_TARGET_GLES |
|
|
|
|
void TextureArrayGLTest::bind1D() { |
|
|
|
|
if(!Context::current()->isExtensionSupported<Extensions::GL::EXT::texture_array>()) |
|
|
|
|
CORRADE_SKIP(Extensions::GL::EXT::texture_array::string() + std::string(" is not supported.")); |
|
|
|
|
|
|
|
|
|
Texture1DArray texture; |
|
|
|
|
texture.bind(15); |
|
|
|
|
|
|
|
|
|
MAGNUM_VERIFY_NO_ERROR(); |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
void TextureArrayGLTest::bind2D() { |
|
|
|
|
#ifndef MAGNUM_TARGET_GLES |
|
|
|
|
if(!Context::current()->isExtensionSupported<Extensions::GL::EXT::texture_array>()) |
|
|
|
|
CORRADE_SKIP(Extensions::GL::EXT::texture_array::string() + std::string(" is not supported.")); |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
Texture2DArray texture; |
|
|
|
|
texture.bind(15); |
|
|
|
|
|
|
|
|
|
MAGNUM_VERIFY_NO_ERROR(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#ifndef MAGNUM_TARGET_GLES |
|
|
|
|
void TextureArrayGLTest::sampling1D() { |
|
|
|
|
if(!Context::current()->isExtensionSupported<Extensions::GL::EXT::texture_array>()) |
|
|
|
|
|