summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-profile.cpp
blob: 204b467f9011c48c5c1e799d2b135f5e4ccf1d23 (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
// slang-profile.cpp
#include "slang-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 "slang-profile-defs.h"
    }
}

const char* getStageName(Stage stage)
{
    switch(stage)
    {
#define PROFILE_STAGE(ID, NAME, ENUM) \
    case Stage::ID: return #NAME;

#include "slang-profile-defs.h"

    default:
        return nullptr;
    }

}



}