summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/slang-replay/main.cpp6
-rw-r--r--tools/slang-unit-test/unit-test-record-replay.cpp7
2 files changed, 8 insertions, 5 deletions
diff --git a/tools/slang-replay/main.cpp b/tools/slang-replay/main.cpp
index 85669aa7d..ac7654794 100644
--- a/tools/slang-replay/main.cpp
+++ b/tools/slang-replay/main.cpp
@@ -1,3 +1,4 @@
+#include <memory>
#include <stdio.h>
#include <replay/recordFile-processor.h>
@@ -79,14 +80,15 @@ int main(int argc, char *argv[])
SlangRecord::RecordFileProcessor recordFileProcessor(options.recordFileName);
Slang::String jsonPath = Slang::Path::replaceExt(options.recordFileName, "json");
- SlangRecord::JsonConsumer jsonConsumer(jsonPath);
+ Slang::RefPtr<SlangRecord::JsonConsumer> jsonConsumer;
SlangRecord::ReplayConsumer replayConsumer;
SlangRecord::SlangDecoder decoder;
if (options.convertToJson)
{
- decoder.addConsumer(&jsonConsumer);
+ jsonConsumer = new SlangRecord::JsonConsumer(jsonPath);
+ decoder.addConsumer(jsonConsumer.get());
}
else
{
diff --git a/tools/slang-unit-test/unit-test-record-replay.cpp b/tools/slang-unit-test/unit-test-record-replay.cpp
index 81e74a407..d775e1421 100644
--- a/tools/slang-unit-test/unit-test-record-replay.cpp
+++ b/tools/slang-unit-test/unit-test-record-replay.cpp
@@ -436,11 +436,12 @@ static SlangResult runTests(UnitTestContext* context)
const char* testBinaryNames[] = {
"cpu-hello-world",
"triangle",
- "shader-object",
"ray-tracing",
"ray-tracing-pipeline",
- "model-viewer",
- "autodiff-texture"
+ "autodiff-texture",
+ "gpu-printing"
+ // "shader-object", // these examples requires reflection API to replay, we have to disable it for now.
+ // "model-viewer",
};
SlangResult finalRes = SLANG_OK;