зеркало из https://github.com/stride3d/xkslang.git
GLSL: Remove use of __ in the implementation of keywords having __.
This commit is contained in:
Родитель
c340425bb2
Коммит
381dd3c0d2
|
@ -683,7 +683,7 @@ void TScanContext::fillInKeywordMap()
|
||||||
(*KeywordMap)["smooth"] = SMOOTH;
|
(*KeywordMap)["smooth"] = SMOOTH;
|
||||||
(*KeywordMap)["flat"] = FLAT;
|
(*KeywordMap)["flat"] = FLAT;
|
||||||
#ifdef AMD_EXTENSIONS
|
#ifdef AMD_EXTENSIONS
|
||||||
(*KeywordMap)["__explicitInterpAMD"] = __EXPLICITINTERPAMD;
|
(*KeywordMap)["__explicitInterpAMD"] = EXPLICITINTERPAMD;
|
||||||
#endif
|
#endif
|
||||||
(*KeywordMap)["centroid"] = CENTROID;
|
(*KeywordMap)["centroid"] = CENTROID;
|
||||||
(*KeywordMap)["precise"] = PRECISE;
|
(*KeywordMap)["precise"] = PRECISE;
|
||||||
|
@ -1490,7 +1490,7 @@ int TScanContext::tokenizeIdentifier()
|
||||||
return keyword;
|
return keyword;
|
||||||
|
|
||||||
#ifdef AMD_EXTENSIONS
|
#ifdef AMD_EXTENSIONS
|
||||||
case __EXPLICITINTERPAMD:
|
case EXPLICITINTERPAMD:
|
||||||
if (parseContext.profile != EEsProfile && parseContext.version >= 450 &&
|
if (parseContext.profile != EEsProfile && parseContext.version >= 450 &&
|
||||||
parseContext.extensionTurnedOn(E_GL_AMD_shader_explicit_vertex_parameter))
|
parseContext.extensionTurnedOn(E_GL_AMD_shader_explicit_vertex_parameter))
|
||||||
return keyword;
|
return keyword;
|
||||||
|
|
|
@ -146,7 +146,7 @@ extern int yylex(YYSTYPE*, TParseContext&);
|
||||||
%token <lex> F16VEC2 F16VEC3 F16VEC4 F16MAT2 F16MAT3 F16MAT4
|
%token <lex> F16VEC2 F16VEC3 F16VEC4 F16MAT2 F16MAT3 F16MAT4
|
||||||
%token <lex> F32VEC2 F32VEC3 F32VEC4 F32MAT2 F32MAT3 F32MAT4
|
%token <lex> F32VEC2 F32VEC3 F32VEC4 F32MAT2 F32MAT3 F32MAT4
|
||||||
%token <lex> F64VEC2 F64VEC3 F64VEC4 F64MAT2 F64MAT3 F64MAT4
|
%token <lex> F64VEC2 F64VEC3 F64VEC4 F64MAT2 F64MAT3 F64MAT4
|
||||||
%token <lex> NOPERSPECTIVE FLAT SMOOTH LAYOUT __EXPLICITINTERPAMD
|
%token <lex> NOPERSPECTIVE FLAT SMOOTH LAYOUT EXPLICITINTERPAMD
|
||||||
|
|
||||||
%token <lex> MAT2X2 MAT2X3 MAT2X4
|
%token <lex> MAT2X2 MAT2X3 MAT2X4
|
||||||
%token <lex> MAT3X2 MAT3X3 MAT3X4
|
%token <lex> MAT3X2 MAT3X3 MAT3X4
|
||||||
|
@ -1135,7 +1135,7 @@ interpolation_qualifier
|
||||||
$$.init($1.loc);
|
$$.init($1.loc);
|
||||||
$$.qualifier.nopersp = true;
|
$$.qualifier.nopersp = true;
|
||||||
}
|
}
|
||||||
| __EXPLICITINTERPAMD {
|
| EXPLICITINTERPAMD {
|
||||||
#ifdef AMD_EXTENSIONS
|
#ifdef AMD_EXTENSIONS
|
||||||
parseContext.globalCheck($1.loc, "__explicitInterpAMD");
|
parseContext.globalCheck($1.loc, "__explicitInterpAMD");
|
||||||
parseContext.profileRequires($1.loc, ECoreProfile, 450, E_GL_AMD_shader_explicit_vertex_parameter, "explicit interpolation");
|
parseContext.profileRequires($1.loc, ECoreProfile, 450, E_GL_AMD_shader_explicit_vertex_parameter, "explicit interpolation");
|
||||||
|
|
|
@ -236,7 +236,7 @@ extern int yydebug;
|
||||||
FLAT = 368,
|
FLAT = 368,
|
||||||
SMOOTH = 369,
|
SMOOTH = 369,
|
||||||
LAYOUT = 370,
|
LAYOUT = 370,
|
||||||
__EXPLICITINTERPAMD = 371,
|
EXPLICITINTERPAMD = 371,
|
||||||
MAT2X2 = 372,
|
MAT2X2 = 372,
|
||||||
MAT2X3 = 373,
|
MAT2X3 = 373,
|
||||||
MAT2X4 = 374,
|
MAT2X4 = 374,
|
||||||
|
@ -981,7 +981,7 @@ static const char *const yytname[] =
|
||||||
"F16VEC2", "F16VEC3", "F16VEC4", "F16MAT2", "F16MAT3", "F16MAT4",
|
"F16VEC2", "F16VEC3", "F16VEC4", "F16MAT2", "F16MAT3", "F16MAT4",
|
||||||
"F32VEC2", "F32VEC3", "F32VEC4", "F32MAT2", "F32MAT3", "F32MAT4",
|
"F32VEC2", "F32VEC3", "F32VEC4", "F32MAT2", "F32MAT3", "F32MAT4",
|
||||||
"F64VEC2", "F64VEC3", "F64VEC4", "F64MAT2", "F64MAT3", "F64MAT4",
|
"F64VEC2", "F64VEC3", "F64VEC4", "F64MAT2", "F64MAT3", "F64MAT4",
|
||||||
"NOPERSPECTIVE", "FLAT", "SMOOTH", "LAYOUT", "__EXPLICITINTERPAMD",
|
"NOPERSPECTIVE", "FLAT", "SMOOTH", "LAYOUT", "EXPLICITINTERPAMD",
|
||||||
"MAT2X2", "MAT2X3", "MAT2X4", "MAT3X2", "MAT3X3", "MAT3X4", "MAT4X2",
|
"MAT2X2", "MAT2X3", "MAT2X4", "MAT3X2", "MAT3X3", "MAT3X4", "MAT4X2",
|
||||||
"MAT4X3", "MAT4X4", "DMAT2X2", "DMAT2X3", "DMAT2X4", "DMAT3X2",
|
"MAT4X3", "MAT4X4", "DMAT2X2", "DMAT2X3", "DMAT2X4", "DMAT3X2",
|
||||||
"DMAT3X3", "DMAT3X4", "DMAT4X2", "DMAT4X3", "DMAT4X4", "F16MAT2X2",
|
"DMAT3X3", "DMAT3X4", "DMAT4X2", "DMAT4X3", "DMAT4X4", "F16MAT2X2",
|
||||||
|
|
|
@ -158,7 +158,7 @@ extern int yydebug;
|
||||||
FLAT = 368,
|
FLAT = 368,
|
||||||
SMOOTH = 369,
|
SMOOTH = 369,
|
||||||
LAYOUT = 370,
|
LAYOUT = 370,
|
||||||
__EXPLICITINTERPAMD = 371,
|
EXPLICITINTERPAMD = 371,
|
||||||
MAT2X2 = 372,
|
MAT2X2 = 372,
|
||||||
MAT2X3 = 373,
|
MAT2X3 = 373,
|
||||||
MAT2X4 = 374,
|
MAT2X4 = 374,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче