mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-22 05:45:38 +00:00
dep/reshadefx: Avoid emitting more reserved keywords as identifiers
This commit is contained in:
parent
6f50e12ea2
commit
ff7bfaaadb
|
@ -500,7 +500,27 @@ private:
|
||||||
// HLSL compiler complains about "technique" and "pass" names in strict mode (no matter the casing)
|
// HLSL compiler complains about "technique" and "pass" names in strict mode (no matter the casing)
|
||||||
if (stringicmp(name, "line") ||
|
if (stringicmp(name, "line") ||
|
||||||
stringicmp(name, "pass") ||
|
stringicmp(name, "pass") ||
|
||||||
stringicmp(name, "technique"))
|
stringicmp(name, "technique") ||
|
||||||
|
stringicmp(name, "point") ||
|
||||||
|
stringicmp(name, "export") ||
|
||||||
|
stringicmp(name, "extern") ||
|
||||||
|
stringicmp(name, "compile") ||
|
||||||
|
stringicmp(name, "discard") ||
|
||||||
|
stringicmp(name, "half") ||
|
||||||
|
stringicmp(name, "in") ||
|
||||||
|
stringicmp(name, "lineadj") ||
|
||||||
|
stringicmp(name, "matrix") ||
|
||||||
|
stringicmp(name, "sample") ||
|
||||||
|
stringicmp(name, "sampler") ||
|
||||||
|
stringicmp(name, "shared") ||
|
||||||
|
stringicmp(name, "precise") ||
|
||||||
|
stringicmp(name, "register") ||
|
||||||
|
stringicmp(name, "texture") ||
|
||||||
|
stringicmp(name, "unorm") ||
|
||||||
|
stringicmp(name, "triangle") ||
|
||||||
|
stringicmp(name, "triangleadj") ||
|
||||||
|
stringicmp(name, "out") ||
|
||||||
|
stringicmp(name, "vector"))
|
||||||
// This is guaranteed to not clash with user defined names, since those starting with an underscore are filtered out in 'define_name'
|
// This is guaranteed to not clash with user defined names, since those starting with an underscore are filtered out in 'define_name'
|
||||||
name = '_' + name;
|
name = '_' + name;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue