mirror of
https://github.com/stenzek/duckstation.git
synced 2025-01-31 03:15:08 +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)
|
||||
if (stringicmp(name, "line") ||
|
||||
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'
|
||||
name = '_' + name;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user