Skip to content

Commit

Permalink
Slightly simplify preprocessor wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
jstone-lucasfilm authored Oct 24, 2023
1 parent a8bb5a0 commit e12a370
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions source/MaterialXTest/MaterialXGenGlsl/GenGlsl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,18 +119,16 @@ TEST_CASE("GenShader: Bind Light Shaders", "[genglsl]")
REQUIRE_NOTHROW(mx::HwShaderGenerator::bindLightShader(*spotLightShader, 66, context));
}

#ifdef MATERIALX_BUILD_BENCHMARK_TESTS
TEST_CASE("GenShader: Performance Test", "[genglsl]")
{
#ifdef MATERIALX_BUILD_BENCHMARK_TESTS
mx::GenContext context(mx::GlslShaderGenerator::create());
BENCHMARK("Load documents, validate and generate shader")
{
return GenShaderUtil::shaderGenPerformanceTest(context);
};
#else
SUCCEED("Performance tests are disabled");
#endif
}
#endif

enum class GlslType
{
Expand Down

0 comments on commit e12a370

Please sign in to comment.