blob: 317afcf6b7e18fd8d8e77edf9a9a3f49723494b8 (
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
|
// Emit.h
#ifndef SLANG_EMIT_H_INCLUDED
#define SLANG_EMIT_H_INCLUDED
#include "../core/basic.h"
#include "compiler.h"
namespace Slang
{
class EntryPoint;
class ProgramLayout;
class TranslationUnitRequest;
struct ExtensionUsageTracker;
void requireGLSLExtension(
ExtensionUsageTracker* tracker,
String const& name);
// Emit code for a single entry point, based on
// the input translation unit.
String emitEntryPoint(
BackEndCompileRequest* compileRequest,
EntryPoint* entryPoint,
// The target language to generate code in (e.g., HLSL/GLSL)
CodeGenTarget target,
// The full target request
TargetRequest* targetRequest);
}
#endif
|