Skip to content

Commit

Permalink
Minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
jstone-lucasfilm authored Oct 18, 2023
1 parent 327cbcd commit 78171c4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions source/MaterialXTest/MaterialXGenGlsl/GenGlsl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,18 +119,17 @@ TEST_CASE("GenShader: Bind Light Shaders", "[genglsl]")
REQUIRE_NOTHROW(mx::HwShaderGenerator::bindLightShader(*spotLightShader, 66, context));
}


TEST_CASE("PerformanceTest: ShaderGen and Validation", "[performancetest]")
TEST_CASE("GenShader: Performance Test, "[genglsl]")
{
#ifdef MATERIALX_DYNAMIC_ANALYSIS
SUCCEED("PerformanceTest - skipped");
SUCCEED("Skipping performance test in dynamic analysis build");
#else
mx::GenContext context(mx::GlslShaderGenerator::create());
BENCHMARK("Load documents, validate and generate shader")
{
return GenShaderUtil::shaderGenPerformanceTest(context);
};
#endif // MATERIALX_DYNAMIC_ANALYSIS
#endif
}
enum class GlslType
Expand Down

0 comments on commit 78171c4

Please sign in to comment.