mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
Add parser support for texture rectangle types
This commit is contained in:
parent
bfb09c2a94
commit
06e5308e29
3 changed files with 6 additions and 0 deletions
2
ast.h
2
ast.h
|
|
@ -326,10 +326,12 @@ enum ast_types {
|
|||
ast_mat4,
|
||||
ast_sampler1d,
|
||||
ast_sampler2d,
|
||||
ast_sampler2drect,
|
||||
ast_sampler3d,
|
||||
ast_samplercube,
|
||||
ast_sampler1dshadow,
|
||||
ast_sampler2dshadow,
|
||||
ast_sampler2drectshadow,
|
||||
ast_samplercubeshadow,
|
||||
ast_sampler1darray,
|
||||
ast_sampler2darray,
|
||||
|
|
|
|||
|
|
@ -78,10 +78,12 @@ ast_type_specifier::ast_type_specifier(int specifier)
|
|||
"mat4",
|
||||
"sampler1D",
|
||||
"sampler2D",
|
||||
"sampler2DRect",
|
||||
"sampler3D",
|
||||
"samplerCube",
|
||||
"sampler1DShadow",
|
||||
"sampler2DShadow",
|
||||
"sampler2DRectShadow",
|
||||
"samplerCubeShadow",
|
||||
"sampler1DArray",
|
||||
"sampler2DArray",
|
||||
|
|
|
|||
|
|
@ -900,10 +900,12 @@ basic_type_specifier_nonarray:
|
|||
| MAT4X4 { $$ = ast_mat4; }
|
||||
| SAMPLER1D { $$ = ast_sampler1d; }
|
||||
| SAMPLER2D { $$ = ast_sampler2d; }
|
||||
| SAMPLER2DRECT { $$ = ast_sampler2drect; }
|
||||
| SAMPLER3D { $$ = ast_sampler3d; }
|
||||
| SAMPLERCUBE { $$ = ast_samplercube; }
|
||||
| SAMPLER1DSHADOW { $$ = ast_sampler1dshadow; }
|
||||
| SAMPLER2DSHADOW { $$ = ast_sampler2dshadow; }
|
||||
| SAMPLER2DRECTSHADOW { $$ = ast_sampler2drectshadow; }
|
||||
| SAMPLERCUBESHADOW { $$ = ast_samplercubeshadow; }
|
||||
| SAMPLER1DARRAY { $$ = ast_sampler1darray; }
|
||||
| SAMPLER2DARRAY { $$ = ast_sampler2darray; }
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue