Esempio n. 1
0
 void InitializeCompiler()
 {
     DestroyCompiler();
     mCompiler =
         ShConstructCompiler(GL_FRAGMENT_SHADER, SH_GLES3_SPEC, SH_GLSL_OUTPUT, &mResources);
     ASSERT_TRUE(mCompiler != nullptr) << "Compiler could not be constructed.";
 }
 void InitializeCompiler()
 {
     DestroyCompiler();
     mCompiler = ShConstructCompiler(GL_FRAGMENT_SHADER, SH_WEBGL_SPEC,
                                     SH_GLSL_COMPATIBILITY_OUTPUT, &mResources);
     ASSERT_TRUE(mCompiler != NULL) << "Compiler could not be constructed.";
 }
Esempio n. 3
0
 void TearDown() override { DestroyCompiler(); }
 virtual void TearDown()
 {
     DestroyCompiler();
 }