yum-mirror/slang

Making it easier to work with shaders

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

Ellie Hermaszewskaformatf65d756bf

master
530 B22 linesraw
1// diagnostics.cpp
2#include "diagnostics.h"
3
4namespace Slang
5{
6
7namespace RenderTestDiagnostics
8{
9#define DIAGNOSTIC(id, severity, name, messageFormat) \
10    const DiagnosticInfo name = {id, Severity::severity, #name, messageFormat};
11#include "diagnostic-defs.h"
12#undef DIAGNOSTIC
13} // namespace RenderTestDiagnostics
14
15static const DiagnosticInfo* const kDiagnostics[] = {
16#define DIAGNOSTIC(id, severity, name, messageFormat) &RenderTestDiagnostics::name,
17#include "diagnostic-defs.h"
18#undef DIAGNOSTIC
19};
20
21
22} // namespace Slang