From 05af41d21d74d24871507e6f8f50574ea08c48a2 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Mon, 23 Sep 2019 15:38:25 -0400 Subject: Simple test profiling (#1062) * First pass support for performance profiling * Test across all elements * Fix bug - sourceContents is not used, should use rawSource. * * Add ability to get prelude from API. * Allow specifying source language for render-test * Made it possible to compile a test input file as C++ * Special handling for reflection * Added C++ impl to performance-profile.slang * Remove some clang warnings. * Output profile timings on appveyor and other TC. * Remove passing around of StdWriters (can use global). Small comment improvements. --- tools/render-test/options.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools/render-test/options.h') diff --git a/tools/render-test/options.h b/tools/render-test/options.h index 67eae6603..1bb4af74c 100644 --- a/tools/render-test/options.h +++ b/tools/render-test/options.h @@ -49,6 +49,7 @@ struct Options /// The set render type RendererType rendererType = RendererType::Unknown; InputLanguageID inputLanguageID = InputLanguageID::Slang; + SlangSourceLanguage sourceLanguage = SLANG_SOURCE_LANGUAGE_UNKNOWN; /// Can be used for overriding the profile const char* profileName = nullptr; @@ -59,6 +60,8 @@ struct Options bool useDXIL = false; bool onlyStartup = false; + bool performanceProfile = false; + Slang::List renderFeatures; /// Required render features for this test to run Slang::List compileArgs; -- cgit v1.2.3