Reland "Mark GLSL reserved names as reserved in SkSL grammar."
This reverts commit5f15c695f9
. Reason for revert: landed http://ag/15959743 to fix Android roll Original change's description: > Revert "Mark GLSL reserved names as reserved in SkSL grammar." > > This reverts commit57f3fc4cde
. > > Reason for revert: breaking Android roll > > Original change's description: > > Mark GLSL reserved names as reserved in SkSL grammar. > > > > We now reject every reserved name in the ES2 docs as an unexpected > > token, except for the rule that all names beginning with `gl_` are > > reserved. (Unfortunately, sksl_frag bends the rules by directly > > declaring a builtin variable named `gl_SecondaryFragColorEXT`.) > > > > Change-Id: I5dcb40b754720ca97fe3d80e2f9072beaa39fcdb > > Bug: skia:11115 > > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/454737 > > Auto-Submit: John Stiles <johnstiles@google.com> > > Commit-Queue: Ethan Nicholas <ethannicholas@google.com> > > Reviewed-by: Ethan Nicholas <ethannicholas@google.com> > > Bug: skia:11115 > Change-Id: Ica56f48dc76ef1e52780acaf59b8ad9143637637 > No-Presubmit: true > No-Tree-Checks: true > No-Try: true > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/454860 > Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> > Commit-Queue: Ethan Nicholas <ethannicholas@google.com> Bug: skia:11115 Change-Id: I012b8d4e03be7f9c888c26d912552412529b4fb6 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/455159 Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Auto-Submit: John Stiles <johnstiles@google.com> Commit-Queue: John Stiles <johnstiles@google.com> Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
This commit is contained in:
parent
1972b46ca8
commit
7e947ab4b6
@ -123,6 +123,44 @@ sksl_error_tests = [
|
|||||||
"/sksl/errors/RedeclareStructTypeWithName.sksl",
|
"/sksl/errors/RedeclareStructTypeWithName.sksl",
|
||||||
"/sksl/errors/RedeclareUserType.sksl",
|
"/sksl/errors/RedeclareUserType.sksl",
|
||||||
"/sksl/errors/RedeclareVariable.sksl",
|
"/sksl/errors/RedeclareVariable.sksl",
|
||||||
|
"/sksl/errors/ReservedNameAsm.sksl",
|
||||||
|
"/sksl/errors/ReservedNameCast.sksl",
|
||||||
|
"/sksl/errors/ReservedNameDouble.sksl",
|
||||||
|
"/sksl/errors/ReservedNameDvec2.sksl",
|
||||||
|
"/sksl/errors/ReservedNameDvec3.sksl",
|
||||||
|
"/sksl/errors/ReservedNameDvec4.sksl",
|
||||||
|
"/sksl/errors/ReservedNameEnum.sksl",
|
||||||
|
"/sksl/errors/ReservedNameExtern.sksl",
|
||||||
|
"/sksl/errors/ReservedNameExternal.sksl",
|
||||||
|
"/sksl/errors/ReservedNameFixed.sksl",
|
||||||
|
"/sksl/errors/ReservedNameFvec2.sksl",
|
||||||
|
"/sksl/errors/ReservedNameFvec3.sksl",
|
||||||
|
"/sksl/errors/ReservedNameFvec4.sksl",
|
||||||
|
"/sksl/errors/ReservedNameGoto.sksl",
|
||||||
|
"/sksl/errors/ReservedNameHvec2.sksl",
|
||||||
|
"/sksl/errors/ReservedNameHvec3.sksl",
|
||||||
|
"/sksl/errors/ReservedNameHvec4.sksl",
|
||||||
|
"/sksl/errors/ReservedNameInput.sksl",
|
||||||
|
"/sksl/errors/ReservedNameInterface.sksl",
|
||||||
|
"/sksl/errors/ReservedNameLong.sksl",
|
||||||
|
"/sksl/errors/ReservedNameNamespace.sksl",
|
||||||
|
"/sksl/errors/ReservedNameOutput.sksl",
|
||||||
|
"/sksl/errors/ReservedNamePacked.sksl",
|
||||||
|
"/sksl/errors/ReservedNamePublic.sksl",
|
||||||
|
"/sksl/errors/ReservedNameSampler1DShadow.sksl",
|
||||||
|
"/sksl/errors/ReservedNameSampler2DRectShadow.sksl",
|
||||||
|
"/sksl/errors/ReservedNameSampler2DShadow.sksl",
|
||||||
|
"/sksl/errors/ReservedNameSampler3DRect.sksl",
|
||||||
|
"/sksl/errors/ReservedNameSizeof.sksl",
|
||||||
|
"/sksl/errors/ReservedNameStatic.sksl",
|
||||||
|
"/sksl/errors/ReservedNameSuperp.sksl",
|
||||||
|
"/sksl/errors/ReservedNameTemplate.sksl",
|
||||||
|
"/sksl/errors/ReservedNameThis.sksl",
|
||||||
|
"/sksl/errors/ReservedNameTypedef.sksl",
|
||||||
|
"/sksl/errors/ReservedNameUnion.sksl",
|
||||||
|
"/sksl/errors/ReservedNameUnsigned.sksl",
|
||||||
|
"/sksl/errors/ReservedNameUsing.sksl",
|
||||||
|
"/sksl/errors/ReservedNameVolatile.sksl",
|
||||||
"/sksl/errors/ReturnDifferentType.sksl",
|
"/sksl/errors/ReturnDifferentType.sksl",
|
||||||
"/sksl/errors/ReturnFromVoid.sksl",
|
"/sksl/errors/ReturnFromVoid.sksl",
|
||||||
"/sksl/errors/ReturnMissingValue.sksl",
|
"/sksl/errors/ReturnMissingValue.sksl",
|
||||||
|
1
resources/sksl/errors/ReservedNameAsm.sksl
Normal file
1
resources/sksl/errors/ReservedNameAsm.sksl
Normal file
@ -0,0 +1 @@
|
|||||||
|
int asm;
|
1
resources/sksl/errors/ReservedNameCast.sksl
Normal file
1
resources/sksl/errors/ReservedNameCast.sksl
Normal file
@ -0,0 +1 @@
|
|||||||
|
int cast;
|
1
resources/sksl/errors/ReservedNameDouble.sksl
Normal file
1
resources/sksl/errors/ReservedNameDouble.sksl
Normal file
@ -0,0 +1 @@
|
|||||||
|
int double;
|
1
resources/sksl/errors/ReservedNameDvec2.sksl
Normal file
1
resources/sksl/errors/ReservedNameDvec2.sksl
Normal file
@ -0,0 +1 @@
|
|||||||
|
int dvec2;
|
1
resources/sksl/errors/ReservedNameDvec3.sksl
Normal file
1
resources/sksl/errors/ReservedNameDvec3.sksl
Normal file
@ -0,0 +1 @@
|
|||||||
|
int dvec3;
|
1
resources/sksl/errors/ReservedNameDvec4.sksl
Normal file
1
resources/sksl/errors/ReservedNameDvec4.sksl
Normal file
@ -0,0 +1 @@
|
|||||||
|
int dvec4;
|
1
resources/sksl/errors/ReservedNameEnum.sksl
Normal file
1
resources/sksl/errors/ReservedNameEnum.sksl
Normal file
@ -0,0 +1 @@
|
|||||||
|
int enum;
|
1
resources/sksl/errors/ReservedNameExtern.sksl
Normal file
1
resources/sksl/errors/ReservedNameExtern.sksl
Normal file
@ -0,0 +1 @@
|
|||||||
|
int extern;
|
1
resources/sksl/errors/ReservedNameExternal.sksl
Normal file
1
resources/sksl/errors/ReservedNameExternal.sksl
Normal file
@ -0,0 +1 @@
|
|||||||
|
int external;
|
1
resources/sksl/errors/ReservedNameFixed.sksl
Normal file
1
resources/sksl/errors/ReservedNameFixed.sksl
Normal file
@ -0,0 +1 @@
|
|||||||
|
int fixed;
|
1
resources/sksl/errors/ReservedNameFvec2.sksl
Normal file
1
resources/sksl/errors/ReservedNameFvec2.sksl
Normal file
@ -0,0 +1 @@
|
|||||||
|
int fvec2;
|
1
resources/sksl/errors/ReservedNameFvec3.sksl
Normal file
1
resources/sksl/errors/ReservedNameFvec3.sksl
Normal file
@ -0,0 +1 @@
|
|||||||
|
int fvec3;
|
1
resources/sksl/errors/ReservedNameFvec4.sksl
Normal file
1
resources/sksl/errors/ReservedNameFvec4.sksl
Normal file
@ -0,0 +1 @@
|
|||||||
|
int fvec4;
|
1
resources/sksl/errors/ReservedNameGoto.sksl
Normal file
1
resources/sksl/errors/ReservedNameGoto.sksl
Normal file
@ -0,0 +1 @@
|
|||||||
|
int goto;
|
1
resources/sksl/errors/ReservedNameHvec2.sksl
Normal file
1
resources/sksl/errors/ReservedNameHvec2.sksl
Normal file
@ -0,0 +1 @@
|
|||||||
|
int hvec2;
|
1
resources/sksl/errors/ReservedNameHvec3.sksl
Normal file
1
resources/sksl/errors/ReservedNameHvec3.sksl
Normal file
@ -0,0 +1 @@
|
|||||||
|
int hvec3;
|
1
resources/sksl/errors/ReservedNameHvec4.sksl
Normal file
1
resources/sksl/errors/ReservedNameHvec4.sksl
Normal file
@ -0,0 +1 @@
|
|||||||
|
int hvec4;
|
1
resources/sksl/errors/ReservedNameInput.sksl
Normal file
1
resources/sksl/errors/ReservedNameInput.sksl
Normal file
@ -0,0 +1 @@
|
|||||||
|
int input;
|
1
resources/sksl/errors/ReservedNameInterface.sksl
Normal file
1
resources/sksl/errors/ReservedNameInterface.sksl
Normal file
@ -0,0 +1 @@
|
|||||||
|
int interface;
|
1
resources/sksl/errors/ReservedNameLong.sksl
Normal file
1
resources/sksl/errors/ReservedNameLong.sksl
Normal file
@ -0,0 +1 @@
|
|||||||
|
int long;
|
1
resources/sksl/errors/ReservedNameNamespace.sksl
Normal file
1
resources/sksl/errors/ReservedNameNamespace.sksl
Normal file
@ -0,0 +1 @@
|
|||||||
|
int namespace;
|
1
resources/sksl/errors/ReservedNameOutput.sksl
Normal file
1
resources/sksl/errors/ReservedNameOutput.sksl
Normal file
@ -0,0 +1 @@
|
|||||||
|
int output;
|
1
resources/sksl/errors/ReservedNamePacked.sksl
Normal file
1
resources/sksl/errors/ReservedNamePacked.sksl
Normal file
@ -0,0 +1 @@
|
|||||||
|
int packed;
|
1
resources/sksl/errors/ReservedNamePublic.sksl
Normal file
1
resources/sksl/errors/ReservedNamePublic.sksl
Normal file
@ -0,0 +1 @@
|
|||||||
|
int public;
|
1
resources/sksl/errors/ReservedNameSampler1DShadow.sksl
Normal file
1
resources/sksl/errors/ReservedNameSampler1DShadow.sksl
Normal file
@ -0,0 +1 @@
|
|||||||
|
int sampler1DShadow;
|
@ -0,0 +1 @@
|
|||||||
|
int sampler2DRectShadow;
|
1
resources/sksl/errors/ReservedNameSampler2DShadow.sksl
Normal file
1
resources/sksl/errors/ReservedNameSampler2DShadow.sksl
Normal file
@ -0,0 +1 @@
|
|||||||
|
int sampler2DShadow;
|
1
resources/sksl/errors/ReservedNameSampler3DRect.sksl
Normal file
1
resources/sksl/errors/ReservedNameSampler3DRect.sksl
Normal file
@ -0,0 +1 @@
|
|||||||
|
int sampler3DRect;
|
1
resources/sksl/errors/ReservedNameSizeof.sksl
Normal file
1
resources/sksl/errors/ReservedNameSizeof.sksl
Normal file
@ -0,0 +1 @@
|
|||||||
|
int sizeof;
|
1
resources/sksl/errors/ReservedNameStatic.sksl
Normal file
1
resources/sksl/errors/ReservedNameStatic.sksl
Normal file
@ -0,0 +1 @@
|
|||||||
|
int static;
|
1
resources/sksl/errors/ReservedNameSuperp.sksl
Normal file
1
resources/sksl/errors/ReservedNameSuperp.sksl
Normal file
@ -0,0 +1 @@
|
|||||||
|
int superp;
|
1
resources/sksl/errors/ReservedNameTemplate.sksl
Normal file
1
resources/sksl/errors/ReservedNameTemplate.sksl
Normal file
@ -0,0 +1 @@
|
|||||||
|
int template;
|
1
resources/sksl/errors/ReservedNameThis.sksl
Normal file
1
resources/sksl/errors/ReservedNameThis.sksl
Normal file
@ -0,0 +1 @@
|
|||||||
|
int this;
|
1
resources/sksl/errors/ReservedNameTypedef.sksl
Normal file
1
resources/sksl/errors/ReservedNameTypedef.sksl
Normal file
@ -0,0 +1 @@
|
|||||||
|
int typedef;
|
1
resources/sksl/errors/ReservedNameUnion.sksl
Normal file
1
resources/sksl/errors/ReservedNameUnion.sksl
Normal file
@ -0,0 +1 @@
|
|||||||
|
int union;
|
1
resources/sksl/errors/ReservedNameUnsigned.sksl
Normal file
1
resources/sksl/errors/ReservedNameUnsigned.sksl
Normal file
@ -0,0 +1 @@
|
|||||||
|
int unsigned;
|
1
resources/sksl/errors/ReservedNameUsing.sksl
Normal file
1
resources/sksl/errors/ReservedNameUsing.sksl
Normal file
@ -0,0 +1 @@
|
|||||||
|
int using;
|
1
resources/sksl/errors/ReservedNameVolatile.sksl
Normal file
1
resources/sksl/errors/ReservedNameVolatile.sksl
Normal file
@ -0,0 +1 @@
|
|||||||
|
int volatile;
|
File diff suppressed because it is too large
Load Diff
@ -51,6 +51,7 @@ struct Token {
|
|||||||
TK_MEDIUMP,
|
TK_MEDIUMP,
|
||||||
TK_LOWP,
|
TK_LOWP,
|
||||||
TK_ES3,
|
TK_ES3,
|
||||||
|
TK_RESERVED,
|
||||||
TK_IDENTIFIER,
|
TK_IDENTIFIER,
|
||||||
TK_DIRECTIVE,
|
TK_DIRECTIVE,
|
||||||
TK_LPAREN,
|
TK_LPAREN,
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -2417,7 +2417,7 @@ static uint8_t SKSL_INCLUDE_sksl_public[] = {199,3,
|
|||||||
46,13,2,2,
|
46,13,2,2,
|
||||||
1,
|
1,
|
||||||
45,
|
45,
|
||||||
55,139,2,0,3,0,1,2,50,
|
55,139,2,0,3,0,1,2,51,
|
||||||
27,
|
27,
|
||||||
46,153,0,185,0,2,
|
46,153,0,185,0,2,
|
||||||
45,
|
45,
|
||||||
@ -2434,7 +2434,7 @@ static uint8_t SKSL_INCLUDE_sksl_public[] = {199,3,
|
|||||||
46,8,2,2,
|
46,8,2,2,
|
||||||
1,
|
1,
|
||||||
45,
|
45,
|
||||||
55,141,2,0,3,0,1,2,50,
|
55,141,2,0,3,0,1,2,51,
|
||||||
27,
|
27,
|
||||||
46,145,0,177,0,2,
|
46,145,0,177,0,2,
|
||||||
45,
|
45,
|
||||||
|
@ -43,8 +43,9 @@ HIGHP = "highp"
|
|||||||
MEDIUMP = "mediump"
|
MEDIUMP = "mediump"
|
||||||
LOWP = "lowp"
|
LOWP = "lowp"
|
||||||
ES3 = "$es3"
|
ES3 = "$es3"
|
||||||
IDENTIFIER = [a-zA-Z_$]([0-9]|[a-zA-Z_$])*
|
RESERVED = asm|class|union|enum|typedef|template|this|packed|goto|volatile|public|static|extern|external|interface|long|double|fixed|unsigned|superp|input|output|hvec[234]|dvec[234]|fvec[234]|sampler[12]DShadow|sampler3DRect|sampler2DRectShadow|sizeof|cast|namespace|using
|
||||||
DIRECTIVE = #[a-zA-Z_$]([0-9]|[a-zA-Z_$])*
|
IDENTIFIER = [a-zA-Z_$][0-9a-zA-Z_$]*
|
||||||
|
DIRECTIVE = #[a-zA-Z_$][0-9a-zA-Z_$]*
|
||||||
LPAREN = "("
|
LPAREN = "("
|
||||||
RPAREN = ")"
|
RPAREN = ")"
|
||||||
LBRACE = "{"
|
LBRACE = "{"
|
||||||
|
4
tests/sksl/errors/ReservedNameAsm.glsl
Normal file
4
tests/sksl/errors/ReservedNameAsm.glsl
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
### Compilation failed:
|
||||||
|
|
||||||
|
error: 1: expected an identifier, but found 'asm'
|
||||||
|
1 error
|
4
tests/sksl/errors/ReservedNameCast.glsl
Normal file
4
tests/sksl/errors/ReservedNameCast.glsl
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
### Compilation failed:
|
||||||
|
|
||||||
|
error: 1: expected an identifier, but found 'cast'
|
||||||
|
1 error
|
4
tests/sksl/errors/ReservedNameDouble.glsl
Normal file
4
tests/sksl/errors/ReservedNameDouble.glsl
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
### Compilation failed:
|
||||||
|
|
||||||
|
error: 1: expected an identifier, but found 'double'
|
||||||
|
1 error
|
4
tests/sksl/errors/ReservedNameDvec2.glsl
Normal file
4
tests/sksl/errors/ReservedNameDvec2.glsl
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
### Compilation failed:
|
||||||
|
|
||||||
|
error: 1: expected an identifier, but found 'dvec2'
|
||||||
|
1 error
|
4
tests/sksl/errors/ReservedNameDvec3.glsl
Normal file
4
tests/sksl/errors/ReservedNameDvec3.glsl
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
### Compilation failed:
|
||||||
|
|
||||||
|
error: 1: expected an identifier, but found 'dvec3'
|
||||||
|
1 error
|
4
tests/sksl/errors/ReservedNameDvec4.glsl
Normal file
4
tests/sksl/errors/ReservedNameDvec4.glsl
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
### Compilation failed:
|
||||||
|
|
||||||
|
error: 1: expected an identifier, but found 'dvec4'
|
||||||
|
1 error
|
4
tests/sksl/errors/ReservedNameEnum.glsl
Normal file
4
tests/sksl/errors/ReservedNameEnum.glsl
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
### Compilation failed:
|
||||||
|
|
||||||
|
error: 1: expected an identifier, but found 'enum'
|
||||||
|
1 error
|
4
tests/sksl/errors/ReservedNameExtern.glsl
Normal file
4
tests/sksl/errors/ReservedNameExtern.glsl
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
### Compilation failed:
|
||||||
|
|
||||||
|
error: 1: expected an identifier, but found 'extern'
|
||||||
|
1 error
|
4
tests/sksl/errors/ReservedNameExternal.glsl
Normal file
4
tests/sksl/errors/ReservedNameExternal.glsl
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
### Compilation failed:
|
||||||
|
|
||||||
|
error: 1: expected an identifier, but found 'external'
|
||||||
|
1 error
|
4
tests/sksl/errors/ReservedNameFixed.glsl
Normal file
4
tests/sksl/errors/ReservedNameFixed.glsl
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
### Compilation failed:
|
||||||
|
|
||||||
|
error: 1: expected an identifier, but found 'fixed'
|
||||||
|
1 error
|
4
tests/sksl/errors/ReservedNameFvec2.glsl
Normal file
4
tests/sksl/errors/ReservedNameFvec2.glsl
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
### Compilation failed:
|
||||||
|
|
||||||
|
error: 1: expected an identifier, but found 'fvec2'
|
||||||
|
1 error
|
4
tests/sksl/errors/ReservedNameFvec3.glsl
Normal file
4
tests/sksl/errors/ReservedNameFvec3.glsl
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
### Compilation failed:
|
||||||
|
|
||||||
|
error: 1: expected an identifier, but found 'fvec3'
|
||||||
|
1 error
|
4
tests/sksl/errors/ReservedNameFvec4.glsl
Normal file
4
tests/sksl/errors/ReservedNameFvec4.glsl
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
### Compilation failed:
|
||||||
|
|
||||||
|
error: 1: expected an identifier, but found 'fvec4'
|
||||||
|
1 error
|
4
tests/sksl/errors/ReservedNameGoto.glsl
Normal file
4
tests/sksl/errors/ReservedNameGoto.glsl
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
### Compilation failed:
|
||||||
|
|
||||||
|
error: 1: expected an identifier, but found 'goto'
|
||||||
|
1 error
|
4
tests/sksl/errors/ReservedNameHvec2.glsl
Normal file
4
tests/sksl/errors/ReservedNameHvec2.glsl
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
### Compilation failed:
|
||||||
|
|
||||||
|
error: 1: expected an identifier, but found 'hvec2'
|
||||||
|
1 error
|
4
tests/sksl/errors/ReservedNameHvec3.glsl
Normal file
4
tests/sksl/errors/ReservedNameHvec3.glsl
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
### Compilation failed:
|
||||||
|
|
||||||
|
error: 1: expected an identifier, but found 'hvec3'
|
||||||
|
1 error
|
4
tests/sksl/errors/ReservedNameHvec4.glsl
Normal file
4
tests/sksl/errors/ReservedNameHvec4.glsl
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
### Compilation failed:
|
||||||
|
|
||||||
|
error: 1: expected an identifier, but found 'hvec4'
|
||||||
|
1 error
|
4
tests/sksl/errors/ReservedNameInput.glsl
Normal file
4
tests/sksl/errors/ReservedNameInput.glsl
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
### Compilation failed:
|
||||||
|
|
||||||
|
error: 1: expected an identifier, but found 'input'
|
||||||
|
1 error
|
4
tests/sksl/errors/ReservedNameInterface.glsl
Normal file
4
tests/sksl/errors/ReservedNameInterface.glsl
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
### Compilation failed:
|
||||||
|
|
||||||
|
error: 1: expected an identifier, but found 'interface'
|
||||||
|
1 error
|
4
tests/sksl/errors/ReservedNameLong.glsl
Normal file
4
tests/sksl/errors/ReservedNameLong.glsl
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
### Compilation failed:
|
||||||
|
|
||||||
|
error: 1: expected an identifier, but found 'long'
|
||||||
|
1 error
|
4
tests/sksl/errors/ReservedNameNamespace.glsl
Normal file
4
tests/sksl/errors/ReservedNameNamespace.glsl
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
### Compilation failed:
|
||||||
|
|
||||||
|
error: 1: expected an identifier, but found 'namespace'
|
||||||
|
1 error
|
4
tests/sksl/errors/ReservedNameOutput.glsl
Normal file
4
tests/sksl/errors/ReservedNameOutput.glsl
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
### Compilation failed:
|
||||||
|
|
||||||
|
error: 1: expected an identifier, but found 'output'
|
||||||
|
1 error
|
4
tests/sksl/errors/ReservedNamePacked.glsl
Normal file
4
tests/sksl/errors/ReservedNamePacked.glsl
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
### Compilation failed:
|
||||||
|
|
||||||
|
error: 1: expected an identifier, but found 'packed'
|
||||||
|
1 error
|
4
tests/sksl/errors/ReservedNamePublic.glsl
Normal file
4
tests/sksl/errors/ReservedNamePublic.glsl
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
### Compilation failed:
|
||||||
|
|
||||||
|
error: 1: expected an identifier, but found 'public'
|
||||||
|
1 error
|
4
tests/sksl/errors/ReservedNameSampler1DShadow.glsl
Normal file
4
tests/sksl/errors/ReservedNameSampler1DShadow.glsl
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
### Compilation failed:
|
||||||
|
|
||||||
|
error: 1: expected an identifier, but found 'sampler1DShadow'
|
||||||
|
1 error
|
4
tests/sksl/errors/ReservedNameSampler2DRectShadow.glsl
Normal file
4
tests/sksl/errors/ReservedNameSampler2DRectShadow.glsl
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
### Compilation failed:
|
||||||
|
|
||||||
|
error: 1: expected an identifier, but found 'sampler2DRectShadow'
|
||||||
|
1 error
|
4
tests/sksl/errors/ReservedNameSampler2DShadow.glsl
Normal file
4
tests/sksl/errors/ReservedNameSampler2DShadow.glsl
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
### Compilation failed:
|
||||||
|
|
||||||
|
error: 1: expected an identifier, but found 'sampler2DShadow'
|
||||||
|
1 error
|
4
tests/sksl/errors/ReservedNameSampler3DRect.glsl
Normal file
4
tests/sksl/errors/ReservedNameSampler3DRect.glsl
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
### Compilation failed:
|
||||||
|
|
||||||
|
error: 1: expected an identifier, but found 'sampler3DRect'
|
||||||
|
1 error
|
4
tests/sksl/errors/ReservedNameSizeof.glsl
Normal file
4
tests/sksl/errors/ReservedNameSizeof.glsl
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
### Compilation failed:
|
||||||
|
|
||||||
|
error: 1: expected an identifier, but found 'sizeof'
|
||||||
|
1 error
|
4
tests/sksl/errors/ReservedNameStatic.glsl
Normal file
4
tests/sksl/errors/ReservedNameStatic.glsl
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
### Compilation failed:
|
||||||
|
|
||||||
|
error: 1: expected an identifier, but found 'static'
|
||||||
|
1 error
|
4
tests/sksl/errors/ReservedNameSuperp.glsl
Normal file
4
tests/sksl/errors/ReservedNameSuperp.glsl
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
### Compilation failed:
|
||||||
|
|
||||||
|
error: 1: expected an identifier, but found 'superp'
|
||||||
|
1 error
|
4
tests/sksl/errors/ReservedNameTemplate.glsl
Normal file
4
tests/sksl/errors/ReservedNameTemplate.glsl
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
### Compilation failed:
|
||||||
|
|
||||||
|
error: 1: expected an identifier, but found 'template'
|
||||||
|
1 error
|
4
tests/sksl/errors/ReservedNameThis.glsl
Normal file
4
tests/sksl/errors/ReservedNameThis.glsl
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
### Compilation failed:
|
||||||
|
|
||||||
|
error: 1: expected an identifier, but found 'this'
|
||||||
|
1 error
|
4
tests/sksl/errors/ReservedNameTypedef.glsl
Normal file
4
tests/sksl/errors/ReservedNameTypedef.glsl
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
### Compilation failed:
|
||||||
|
|
||||||
|
error: 1: expected an identifier, but found 'typedef'
|
||||||
|
1 error
|
4
tests/sksl/errors/ReservedNameUnion.glsl
Normal file
4
tests/sksl/errors/ReservedNameUnion.glsl
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
### Compilation failed:
|
||||||
|
|
||||||
|
error: 1: expected an identifier, but found 'union'
|
||||||
|
1 error
|
4
tests/sksl/errors/ReservedNameUnsigned.glsl
Normal file
4
tests/sksl/errors/ReservedNameUnsigned.glsl
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
### Compilation failed:
|
||||||
|
|
||||||
|
error: 1: expected an identifier, but found 'unsigned'
|
||||||
|
1 error
|
4
tests/sksl/errors/ReservedNameUsing.glsl
Normal file
4
tests/sksl/errors/ReservedNameUsing.glsl
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
### Compilation failed:
|
||||||
|
|
||||||
|
error: 1: expected an identifier, but found 'using'
|
||||||
|
1 error
|
4
tests/sksl/errors/ReservedNameVolatile.glsl
Normal file
4
tests/sksl/errors/ReservedNameVolatile.glsl
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
### Compilation failed:
|
||||||
|
|
||||||
|
error: 1: expected an identifier, but found 'volatile'
|
||||||
|
1 error
|
4
tests/sksl/errors/ReservedNames.glsl
Normal file
4
tests/sksl/errors/ReservedNames.glsl
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
### Compilation failed:
|
||||||
|
|
||||||
|
error: 1: expected an identifier, but found 'asm'
|
||||||
|
1 error
|
Loading…
Reference in New Issue
Block a user