From e12a3709491a48e02d0bccfac89eafff2952bf5e Mon Sep 17 00:00:00 2001 From: Jonathan Stone Date: Tue, 24 Oct 2023 14:02:57 -0700 Subject: [PATCH] Slightly simplify preprocessor wrapper --- source/MaterialXTest/MaterialXGenGlsl/GenGlsl.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/source/MaterialXTest/MaterialXGenGlsl/GenGlsl.cpp b/source/MaterialXTest/MaterialXGenGlsl/GenGlsl.cpp index 0e1fd00c6a..2cc4d7ccf4 100644 --- a/source/MaterialXTest/MaterialXGenGlsl/GenGlsl.cpp +++ b/source/MaterialXTest/MaterialXGenGlsl/GenGlsl.cpp @@ -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 {