blob: 1766127b20f9947db53a4034dcf9749ac846f331 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
#ifndef BAKER_SL_COMPILED_PROGRAM_H
#define BAKER_SL_COMPILED_PROGRAM_H
#include "../core/basic.h"
#include "diagnostics.h"
#include "syntax.h"
#include "type-layout.h"
namespace Slang
{
void IndentString(StringBuilder & sb, String src);
struct EntryPointResult
{
String outputSource;
};
struct TranslationUnitResult
{
String outputSource;
List<EntryPointResult> entryPoints;
};
class CompileResult
{
public:
DiagnosticSink* mSink = nullptr;
// Per-translation-unit results
List<TranslationUnitResult> translationUnits;
CompileResult()
{}
~CompileResult()
{
}
DiagnosticSink * GetErrorWriter()
{
return mSink;
}
int GetErrorCount()
{
return mSink->GetErrorCount();
}
};
}
#endif
|