Correct precision qualification on built-in functions.
This is a replacement commit for pull request #238. This is a design change, followed by implementation change that A) fixes the changes caused by the design change, and B) fixes some cases that were originally incorrect. The design change is to not give built-in functions default precision qualification. This is to allow the rule that the precision of some built-in functions adopt their precision qualification from the calling arguments. This is A above. A consequence of this design change is that all built-ins that are supposed to have an explicit precision qualifier must now be declared that way. So, a lot more built-in declarations now have precision qualifiers, just to keep things the same. This is B above.
This commit is contained in:
parent
f88a5c756e
commit
af459216a1
13 changed files with 213 additions and 199 deletions
|
|
@ -4,14 +4,16 @@ ERROR: 0:17: 'b' : function name is redeclaration of existing name
|
|||
ERROR: 0:20: 'c' : redefinition
|
||||
ERROR: 0:22: 'f' : redefinition
|
||||
ERROR: 0:24: 'redefinition of built-in function' : not supported with this profile: es
|
||||
ERROR: 0:24: 'highp' : overloaded functions must have the same parameter precision qualifiers for argument 1
|
||||
ERROR: 0:25: 'redefinition of built-in function' : not supported with this profile: es
|
||||
ERROR: 0:25: 'highp' : overloaded functions must have the same parameter precision qualifiers for argument 1
|
||||
ERROR: 0:38: 'local function declaration' : not supported with this profile: es
|
||||
ERROR: 0:43: 'sin' : can't use function syntax on variable
|
||||
ERROR: 0:57: 'z' : undeclared identifier
|
||||
ERROR: 0:57: 'z' : redefinition
|
||||
ERROR: 0:73: 'degrees' : can't use function syntax on variable
|
||||
ERROR: 0:76: 'vertex-shader struct output' : not supported for this version or the enabled extensions
|
||||
ERROR: 12 compilation errors. No code generated.
|
||||
ERROR: 14 compilation errors. No code generated.
|
||||
|
||||
|
||||
Shader version: 100
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue