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.9 KiB49 linesraw
1#include "slang-test-server-protocol.h"
2
3namespace TestServerProtocol
4{
5
6static const StructRttiInfo _makeExecuteUnitTestArgsRtti()
7{
8    ExecuteUnitTestArgs obj;
9    StructRttiBuilder builder(&obj, "TestServerProtocol::ExecuteUnitTestArgs", nullptr);
10
11    builder.addField("moduleName", &obj.moduleName);
12    builder.addField("testName", &obj.testName);
13    builder.addField("enabledApis", &obj.enabledApis);
14    builder.addField("enableDebugLayers", &obj.enableDebugLayers);
15    return builder.make();
16}
17/* static */ const UnownedStringSlice ExecuteUnitTestArgs::g_methodName =
18    UnownedStringSlice::fromLiteral("unitTest");
19/* static */ const StructRttiInfo ExecuteUnitTestArgs::g_rttiInfo = _makeExecuteUnitTestArgsRtti();
20
21static const StructRttiInfo _makeExecuteToolTestArgsRtti()
22{
23    ExecuteToolTestArgs obj;
24    StructRttiBuilder builder(&obj, "TestServerProtocol::ExecuteToolTestArgs", nullptr);
25    builder.addField("toolName", &obj.toolName);
26    builder.addField("args", &obj.args);
27    return builder.make();
28}
29/* static */ const StructRttiInfo ExecuteToolTestArgs::g_rttiInfo = _makeExecuteToolTestArgsRtti();
30/* static */ const UnownedStringSlice ExecuteToolTestArgs::g_methodName =
31    UnownedStringSlice::fromLiteral("tool");
32
33static const StructRttiInfo _makeExecutionResultRtti()
34{
35    ExecutionResult obj;
36    StructRttiBuilder builder(&obj, "TestServerProtocol::ExecutionResult", nullptr);
37    builder.addField("stdOut", &obj.stdOut);
38    builder.addField("stdError", &obj.stdError);
39    builder.addField("debugLayer", &obj.debugLayer);
40    builder.addField("result", &obj.result);
41    builder.addField("returnCode", &obj.returnCode);
42    return builder.make();
43}
44/* static */ const StructRttiInfo ExecutionResult::g_rttiInfo = _makeExecutionResultRtti();
45
46/* static */ const UnownedStringSlice QuitArgs::g_methodName =
47    UnownedStringSlice::fromLiteral("quit");
48
49} // namespace TestServerProtocol