Skip to content

Commit

Permalink
Properly set D3D12SDKPath
Browse files Browse the repository at this point in the history
Closes #5992

This commit have an effect on slang-test.exe and test-server.exe.

When we run slang-test.exe, it uses D3D12Core.DLL located at
`build/{Release,Debug}/bin/D3D12`, which is `D3D12` from where the
executable file is located at.

This has been working fine but we found a case where it doesn't work
properly.  This commit sets D3D12SDKPath value explicitly to avoid
potential problems.
  • Loading branch information
jkwak-work committed Jan 3, 2025
1 parent d48cd13 commit 0e9befc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/slang-test/slang-test-main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@

using namespace Slang;

#if defined(_WIN32)
extern "C" { __declspec(dllexport) extern const uint32_t D3D12SDKVersion = 711; }

extern "C" { __declspec(dllexport) extern const char* D3D12SDKPath = u8".\\D3D12\\"; }
#endif

// Options for a particular test
struct TestOptions
{
Expand Down

0 comments on commit 0e9befc

Please sign in to comment.