blob: 5f506741f90a032a9b644332bd6c59c1f4ec3376 (
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
|
// profile.cpp
#include "profile.h"
namespace Slang {
ProfileFamily getProfileFamily(ProfileVersion version)
{
switch( version )
{
default: return ProfileFamily::Unknown;
#define PROFILE_VERSION(TAG, FAMILY) case ProfileVersion::TAG: return ProfileFamily::FAMILY;
#include "profile-defs.h"
}
}
const char* getStageName(Stage stage)
{
switch(stage)
{
#define PROFILE_STAGE(ID, NAME, ENUM) \
case Stage::ID: return #NAME;
#include "profile-defs.h"
default:
return nullptr;
}
}
}
|