|
|
|
@ -37,6 +37,9 @@ class MultisampleTextureGLTest: public AbstractOpenGLTester { |
|
|
|
void construct2D(); |
|
|
|
void construct2D(); |
|
|
|
void construct2DArray(); |
|
|
|
void construct2DArray(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void bind2D(); |
|
|
|
|
|
|
|
void bind2DArray(); |
|
|
|
|
|
|
|
|
|
|
|
void storage2D(); |
|
|
|
void storage2D(); |
|
|
|
void storage2DArray(); |
|
|
|
void storage2DArray(); |
|
|
|
|
|
|
|
|
|
|
|
@ -61,6 +64,9 @@ MultisampleTextureGLTest::MultisampleTextureGLTest() { |
|
|
|
addTests({&MultisampleTextureGLTest::construct2D, |
|
|
|
addTests({&MultisampleTextureGLTest::construct2D, |
|
|
|
&MultisampleTextureGLTest::construct2DArray, |
|
|
|
&MultisampleTextureGLTest::construct2DArray, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
&MultisampleTextureGLTest::bind2D, |
|
|
|
|
|
|
|
&MultisampleTextureGLTest::bind2DArray, |
|
|
|
|
|
|
|
|
|
|
|
&MultisampleTextureGLTest::storage2D, |
|
|
|
&MultisampleTextureGLTest::storage2D, |
|
|
|
&MultisampleTextureGLTest::storage2DArray, |
|
|
|
&MultisampleTextureGLTest::storage2DArray, |
|
|
|
|
|
|
|
|
|
|
|
@ -109,6 +115,26 @@ void MultisampleTextureGLTest::construct2DArray() { |
|
|
|
MAGNUM_VERIFY_NO_ERROR(); |
|
|
|
MAGNUM_VERIFY_NO_ERROR(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void MultisampleTextureGLTest::bind2D() { |
|
|
|
|
|
|
|
if(!Context::current()->isExtensionSupported<Extensions::GL::ARB::texture_multisample>()) |
|
|
|
|
|
|
|
CORRADE_SKIP(Extensions::GL::ARB::texture_multisample::string() + std::string(" is not supported.")); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MultisampleTexture2D texture; |
|
|
|
|
|
|
|
texture.bind(15); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MAGNUM_VERIFY_NO_ERROR(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void MultisampleTextureGLTest::bind2DArray() { |
|
|
|
|
|
|
|
if(!Context::current()->isExtensionSupported<Extensions::GL::ARB::texture_multisample>()) |
|
|
|
|
|
|
|
CORRADE_SKIP(Extensions::GL::ARB::texture_multisample::string() + std::string(" is not supported.")); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MultisampleTexture2DArray texture; |
|
|
|
|
|
|
|
texture.bind(15); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MAGNUM_VERIFY_NO_ERROR(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void MultisampleTextureGLTest::storage2D() { |
|
|
|
void MultisampleTextureGLTest::storage2D() { |
|
|
|
if(!Context::current()->isExtensionSupported<Extensions::GL::ARB::texture_multisample>()) |
|
|
|
if(!Context::current()->isExtensionSupported<Extensions::GL::ARB::texture_multisample>()) |
|
|
|
CORRADE_SKIP(Extensions::GL::ARB::texture_multisample::string() + std::string(" is not supported.")); |
|
|
|
CORRADE_SKIP(Extensions::GL::ARB::texture_multisample::string() + std::string(" is not supported.")); |
|
|
|
|