blob: 4b689455b806a4850e1f6359666530e07e726fd2 (
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
|
// slang-compiler.cpp
#include "slang-compiler.h"
namespace Slang
{
bool isValidSlangLanguageVersion(SlangLanguageVersion version)
{
switch (version)
{
case SLANG_LANGUAGE_VERSION_LEGACY:
case SLANG_LANGUAGE_VERSION_2025:
case SLANG_LANGUAGE_VERSION_2026:
return true;
default:
return false;
}
}
bool isValidGLSLVersion(int version)
{
switch (version)
{
case 100:
case 110:
case 120:
case 130:
case 140:
case 150:
case 300:
case 310:
case 320:
case 330:
case 400:
case 410:
case 420:
case 430:
case 440:
case 450:
case 460:
return true;
default:
return false;
}
}
} // namespace Slang
|