From 1fe5e83f3dcc8ef0efa2dd083ebdfab5d0f101a9 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Tue, 18 Jul 2023 18:45:38 -0400 Subject: nsight Aftermath crash example (#2984) * Small fixes and improvements around reflection tool. * Make PrettyWriter printing a class. * Aftermath crash demo WIP. * Enable aftermath in test project. * Setting failCount. * Dumping out of source maps. * Improve comments. Simplify handling of compile products. * Other small fixes to aftermath example. * Added Emit SourceLocType. Track sourcemap association meaning. Improved documentation. * Small improvements. * Capture debug information for D3D11/D3D12/Vulkan. * Enable debug info. * Small improvements. * Improve aftermath example README.md. --- slang.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'slang.h') diff --git a/slang.h b/slang.h index bac197673..01606500b 100644 --- a/slang.h +++ b/slang.h @@ -4513,6 +4513,18 @@ namespace slang IBlob** outCode, IBlob** outDiagnostics = nullptr) = 0; + /** Get the compilation result as a file system. + + Has the same requirements as getEntryPointCode. + + The result is not written to the actual OS file system, but is made avaiable as an + in memory representation. + */ + virtual SLANG_NO_THROW SlangResult SLANG_MCALL getResultAsFileSystem( + SlangInt entryPointIndex, + SlangInt targetIndex, + ISlangMutableFileSystem** outFileSystem) = 0; + /** Compute a hash for the entry point at `entryPointIndex` for the chosen `targetIndex`. This computes a hash based on all the dependencies for this component type as well as the -- cgit v1.2.3