blob: 6c0b395644d912042a78e0e83fd8e6a80c72bc5c (
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
|
#ifndef SLANG_REFLECTION_H
#define SLANG_REFLECTION_H
#include "../core/basic.h"
#include "syntax.h"
#include "../../slang.h"
namespace Slang {
// TODO(tfoley): Need to move these somewhere universal
typedef intptr_t Int;
typedef int64_t Int64;
typedef uintptr_t UInt;
typedef uint64_t UInt64;
class ProgramLayout;
class TypeLayout;
//
SlangTypeKind getReflectionTypeKind(Type* type);
SlangTypeKind getReflectionParameterCategory(TypeLayout* typeLayout);
UInt getReflectionFieldCount(Type* type);
UInt getReflectionFieldByIndex(Type* type, UInt index);
UInt getReflectionFieldByIndex(TypeLayout* typeLayout, UInt index);
}
#endif // SLANG_REFLECTION_H
|