yum-mirror/slang

Making it easier to work with shaders

git clone https://git.yummers.dev/yum-mirror/slang

Jay KwakHandle debug-layer messages in a separate channel (#7988)aefd1e3e0

master
1.2 KiB54 linesraw
1#ifndef SLANG_COMPILER_CORE_TEST_PROTOCOL_H
2#define SLANG_COMPILER_CORE_TEST_PROTOCOL_H
3
4#include "../core/slang-rtti-info.h"
5#include "slang-com-helper.h"
6#include "slang-com-ptr.h"
7#include "slang-json-value.h"
8#include "slang.h"
9
10namespace TestServerProtocol
11{
12
13using namespace Slang;
14
15struct ExecuteUnitTestArgs
16{
17    String moduleName;
18    String testName;
19    uint32_t enabledApis;
20    bool enableDebugLayers;
21
22    static const UnownedStringSlice g_methodName;
23    static const StructRttiInfo g_rttiInfo;
24};
25
26struct ExecuteToolTestArgs
27{
28    String toolName;   ///< The name of the tool (will be a shared library typically - like
29                       ///< render-test). Doesn't need -tool suffix.
30    List<String> args; ///< Arguments passed to the tool during exectution
31
32    static const UnownedStringSlice g_methodName;
33    static const StructRttiInfo g_rttiInfo;
34};
35
36struct QuitArgs
37{
38    static const UnownedStringSlice g_methodName;
39};
40
41struct ExecutionResult
42{
43    String stdOut;
44    String stdError;
45    String debugLayer;
46    int32_t result = SLANG_OK;
47    int32_t returnCode = 0; ///< As returned if invoked as command line
48
49    static const StructRttiInfo g_rttiInfo;
50};
51
52} // namespace TestServerProtocol
53
54#endif // SLANG_COMPILER_CORE_TEST_PROTOCOL_H