/** Stub de-init method */
void SpirvModulesPositiveTest::deinit()
{
+ if (!m_context.getContextInfo().isExtensionSupported("GL_ARB_gl_spirv"))
+ return;
const Functions& gl = m_context.getRenderContext().getFunctions();
if (m_fbo)
/** Stub init method */
void SpirvShaderBinaryMultipleShaderObjectsTest::init()
{
+ if (!m_context.getContextInfo().isExtensionSupported("GL_ARB_gl_spirv"))
+ TCU_THROW(NotSupportedError, "GL_ARB_gl_spirv is not supported");
+
m_spirv = "OpCapability Shader\n"
"%1 = OpExtInstImport \"GLSL.std.450\"\n"
"OpMemoryModel Logical GLSL450\n"
/** Stub de-init method */
void SpirvModulesErrorVerificationTest::deinit()
{
+ if (!m_context.getContextInfo().isExtensionSupported("GL_ARB_gl_spirv"))
+ return;
+
const Functions& gl = m_context.getRenderContext().getFunctions();
gl.deleteTextures(1, &m_textureId);
/** Stub de-init method */
void SpirvGlslToSpirVSpecializationConstantsTest::deinit()
{
+ if (!m_context.getContextInfo().isExtensionSupported("GL_ARB_gl_spirv"))
+ return;
const Functions& gl = m_context.getRenderContext().getFunctions();
if (m_fbo)