summaryrefslogtreecommitdiffstats
path: root/examples/nv-aftermath-example/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/nv-aftermath-example/main.cpp')
-rw-r--r--examples/nv-aftermath-example/main.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/nv-aftermath-example/main.cpp b/examples/nv-aftermath-example/main.cpp
index 24d59ae62..c4f40fda6 100644
--- a/examples/nv-aftermath-example/main.cpp
+++ b/examples/nv-aftermath-example/main.cpp
@@ -15,6 +15,8 @@
using namespace gfx;
using namespace Slang;
+static const ExampleResources resourceBase("nv-aftermath-example");
+
// This example is based on the "triangle" sample.
//
// This examples purpose is to show how to use the aftermath SDK to capture
@@ -283,7 +285,8 @@ gfx::Result AftermathCrashExample::loadShaderProgram(
}
ComPtr<slang::IBlob> diagnosticsBlob;
- slang::IModule* module = slangSession->loadModule("shaders", diagnosticsBlob.writeRef());
+ Slang::String path = resourceBase.resolveResource("shaders.slang");
+ slang::IModule* module = slangSession->loadModule(path.getBuffer(), diagnosticsBlob.writeRef());
diagnoseIfNeeded(diagnosticsBlob);
if (!module)
return SLANG_FAIL;