⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 slang_shader_syn.h

📁 Mesa is an open-source implementation of the OpenGL specification - a system for rendering interacti
💻 H
📖 第 1 页 / 共 3 页
字号:
/* DO NOT EDIT - THIS FILE IS AUTOMATICALLY GENERATED FROM THE .syn FILE */".syntax translation_unit;\n"".emtcode REVISION 4\n"".emtcode EXTERNAL_NULL 0\n"".emtcode EXTERNAL_FUNCTION_DEFINITION 1\n"".emtcode EXTERNAL_DECLARATION 2\n"".emtcode DEFAULT_PRECISION 3\n"".emtcode INVARIANT_STMT 4\n"".emtcode PRECISION_DEFAULT 0\n"".emtcode PRECISION_LOW 1\n"".emtcode PRECISION_MEDIUM 2\n"".emtcode PRECISION_HIGH 3\n"".emtcode DECLARATION_FUNCTION_PROTOTYPE 1\n"".emtcode DECLARATION_INIT_DECLARATOR_LIST 2\n"".emtcode FUNCTION_ORDINARY 0\n"".emtcode FUNCTION_CONSTRUCTOR 1\n"".emtcode FUNCTION_OPERATOR 2\n"".emtcode OPERATOR_ADDASSIGN 1\n"".emtcode OPERATOR_SUBASSIGN 2\n"".emtcode OPERATOR_MULASSIGN 3\n"".emtcode OPERATOR_DIVASSIGN 4\n"".emtcode OPERATOR_LOGICALXOR 11\n"".emtcode OPERATOR_LESS 15\n"".emtcode OPERATOR_GREATER 16\n"".emtcode OPERATOR_LESSEQUAL 17\n"".emtcode OPERATOR_GREATEREQUAL 18\n"".emtcode OPERATOR_MULTIPLY 21\n"".emtcode OPERATOR_DIVIDE 22\n"".emtcode OPERATOR_INCREMENT 24\n"".emtcode OPERATOR_DECREMENT 25\n"".emtcode OPERATOR_PLUS 26\n"".emtcode OPERATOR_MINUS 27\n"".emtcode OPERATOR_NOT 29\n"".emtcode DECLARATOR_NONE 0\n"".emtcode DECLARATOR_NEXT 1\n"".emtcode VARIABLE_NONE 0\n"".emtcode VARIABLE_IDENTIFIER 1\n"".emtcode VARIABLE_INITIALIZER 2\n"".emtcode VARIABLE_ARRAY_EXPLICIT 3\n"".emtcode VARIABLE_ARRAY_UNKNOWN 4\n"".emtcode TYPE_QUALIFIER_NONE 0\n"".emtcode TYPE_QUALIFIER_CONST 1\n"".emtcode TYPE_QUALIFIER_ATTRIBUTE 2\n"".emtcode TYPE_QUALIFIER_VARYING 3\n"".emtcode TYPE_QUALIFIER_UNIFORM 4\n"".emtcode TYPE_QUALIFIER_FIXEDOUTPUT 5\n"".emtcode TYPE_QUALIFIER_FIXEDINPUT 6\n"".emtcode TYPE_SPECIFIER_VOID 0\n"".emtcode TYPE_SPECIFIER_BOOL 1\n"".emtcode TYPE_SPECIFIER_BVEC2 2\n"".emtcode TYPE_SPECIFIER_BVEC3 3\n"".emtcode TYPE_SPECIFIER_BVEC4 4\n"".emtcode TYPE_SPECIFIER_INT 5\n"".emtcode TYPE_SPECIFIER_IVEC2 6\n"".emtcode TYPE_SPECIFIER_IVEC3 7\n"".emtcode TYPE_SPECIFIER_IVEC4 8\n"".emtcode TYPE_SPECIFIER_FLOAT 9\n"".emtcode TYPE_SPECIFIER_VEC2 10\n"".emtcode TYPE_SPECIFIER_VEC3 11\n"".emtcode TYPE_SPECIFIER_VEC4 12\n"".emtcode TYPE_SPECIFIER_MAT2 13\n"".emtcode TYPE_SPECIFIER_MAT3 14\n"".emtcode TYPE_SPECIFIER_MAT4 15\n"".emtcode TYPE_SPECIFIER_SAMPLER1D 16\n"".emtcode TYPE_SPECIFIER_SAMPLER2D 17\n"".emtcode TYPE_SPECIFIER_SAMPLER3D 18\n"".emtcode TYPE_SPECIFIER_SAMPLERCUBE 19\n"".emtcode TYPE_SPECIFIER_SAMPLER1DSHADOW 20\n"".emtcode TYPE_SPECIFIER_SAMPLER2DSHADOW 21\n"".emtcode TYPE_SPECIFIER_SAMPLER2DRECT 22\n"".emtcode TYPE_SPECIFIER_SAMPLER2DRECTSHADOW 23\n"".emtcode TYPE_SPECIFIER_STRUCT 24\n"".emtcode TYPE_SPECIFIER_TYPENAME 25\n"".emtcode TYPE_SPECIFIER_MAT23 26\n"".emtcode TYPE_SPECIFIER_MAT32 27\n"".emtcode TYPE_SPECIFIER_MAT24 28\n"".emtcode TYPE_SPECIFIER_MAT42 29\n"".emtcode TYPE_SPECIFIER_MAT34 30\n"".emtcode TYPE_SPECIFIER_MAT43 31\n"".emtcode FIELD_NONE 0\n"".emtcode FIELD_NEXT 1\n"".emtcode FIELD_ARRAY 2\n"".emtcode OP_END 0\n"".emtcode OP_BLOCK_BEGIN_NO_NEW_SCOPE 1\n"".emtcode OP_BLOCK_BEGIN_NEW_SCOPE 2\n"".emtcode OP_DECLARE 3\n"".emtcode OP_ASM 4\n"".emtcode OP_BREAK 5\n"".emtcode OP_CONTINUE 6\n"".emtcode OP_DISCARD 7\n"".emtcode OP_RETURN 8\n"".emtcode OP_EXPRESSION 9\n"".emtcode OP_IF 10\n"".emtcode OP_WHILE 11\n"".emtcode OP_DO 12\n"".emtcode OP_FOR 13\n"".emtcode OP_PUSH_VOID 14\n"".emtcode OP_PUSH_BOOL 15\n"".emtcode OP_PUSH_INT 16\n"".emtcode OP_PUSH_FLOAT 17\n"".emtcode OP_PUSH_IDENTIFIER 18\n"".emtcode OP_SEQUENCE 19\n"".emtcode OP_ASSIGN 20\n"".emtcode OP_ADDASSIGN 21\n"".emtcode OP_SUBASSIGN 22\n"".emtcode OP_MULASSIGN 23\n"".emtcode OP_DIVASSIGN 24\n"".emtcode OP_SELECT 31\n"".emtcode OP_LOGICALOR 32\n"".emtcode OP_LOGICALXOR 33\n"".emtcode OP_LOGICALAND 34\n"".emtcode OP_EQUAL 38\n"".emtcode OP_NOTEQUAL 39\n"".emtcode OP_LESS 40\n"".emtcode OP_GREATER 41\n"".emtcode OP_LESSEQUAL 42\n"".emtcode OP_GREATEREQUAL 43\n"".emtcode OP_ADD 46\n"".emtcode OP_SUBTRACT 47\n"".emtcode OP_MULTIPLY 48\n"".emtcode OP_DIVIDE 49\n"".emtcode OP_PREINCREMENT 51\n"".emtcode OP_PREDECREMENT 52\n"".emtcode OP_PLUS 53\n"".emtcode OP_MINUS 54\n"".emtcode OP_NOT 56\n"".emtcode OP_SUBSCRIPT 57\n"".emtcode OP_CALL 58\n"".emtcode OP_FIELD 59\n"".emtcode OP_POSTINCREMENT 60\n"".emtcode OP_POSTDECREMENT 61\n"".emtcode PARAM_QUALIFIER_IN 0\n"".emtcode PARAM_QUALIFIER_OUT 1\n"".emtcode PARAM_QUALIFIER_INOUT 2\n"".emtcode PARAMETER_NONE 0\n"".emtcode PARAMETER_NEXT 1\n"".emtcode PARAMETER_ARRAY_NOT_PRESENT 0\n"".emtcode PARAMETER_ARRAY_PRESENT 1\n"".errtext INVALID_EXTERNAL_DECLARATION \"2001: Syntax error.\"\n"".errtext INVALID_OPERATOR_OVERRIDE \"2002: Invalid operator override.\"\n"".errtext LBRACE_EXPECTED \"2003: '{' expected but '$err_token$' found.\"\n"".errtext LPAREN_EXPECTED \"2004: '(' expected but '$err_token$' found.\"\n"".errtext RPAREN_EXPECTED \"2005: ')' expected but '$err_token$' found.\"\n"".errtext INVALID_PRECISION \"2006: Invalid precision specifier '$err_token$'.\"\n"".errtext INVALID_PRECISION_TYPE \"2007: Invalid precision type '$err_token$'.\"\n"".regbyte parsing_builtin 0\n"".regbyte shader_type 0\n""variable_identifier\n"" identifier .emit OP_PUSH_IDENTIFIER;\n""primary_expression\n"" floatconstant .or boolconstant .or intconstant .or variable_identifier .or primary_expression_1;\n""primary_expression_1\n"" lparen .and expression .and rparen;\n""postfix_expression\n"" postfix_expression_1 .and .loop postfix_expression_2;\n""postfix_expression_1\n"" function_call .or primary_expression;\n""postfix_expression_2\n"" postfix_expression_3 .or postfix_expression_4 .or\n"" plusplus .emit OP_POSTINCREMENT .or\n"" minusminus .emit OP_POSTDECREMENT;\n""postfix_expression_3\n"" lbracket .and integer_expression .and rbracket .emit OP_SUBSCRIPT;\n""postfix_expression_4\n"" dot .and field_selection .emit OP_FIELD;\n""integer_expression\n"" expression;\n""function_call\n"" function_call_generic .emit OP_CALL .and .true .emit OP_END;\n""function_call_generic\n"" function_call_generic_1 .or function_call_generic_2;\n""function_call_generic_1\n"" function_call_header_with_parameters .and rparen .error RPAREN_EXPECTED;\n""function_call_generic_2\n"" function_call_header_no_parameters .and rparen .error RPAREN_EXPECTED;\n""function_call_header_no_parameters\n"" function_call_header .and function_call_header_no_parameters_1;\n""function_call_header_no_parameters_1\n"" \"void\" .or .true;\n""function_call_header_with_parameters\n"" function_call_header .and assignment_expression .and .true .emit OP_END .and\n"" .loop function_call_header_with_parameters_1;\n""function_call_header_with_parameters_1\n"" comma .and assignment_expression .and .true .emit OP_END;\n""function_call_header\n"" function_identifier .and lparen;\n""function_identifier\n"" identifier;\n""unary_expression\n"" postfix_expression .or unary_expression_1 .or unary_expression_2 .or unary_expression_3 .or\n"" unary_expression_4 .or unary_expression_5;\n""unary_expression_1\n"" plusplus .and unary_expression .and .true .emit OP_PREINCREMENT;\n""unary_expression_2\n"" minusminus .and unary_expression .and .true .emit OP_PREDECREMENT;\n""unary_expression_3\n"" plus .and unary_expression .and .true .emit OP_PLUS;\n""unary_expression_4\n"" minus .and unary_expression .and .true .emit OP_MINUS;\n""unary_expression_5\n"" bang .and unary_expression .and .true .emit OP_NOT;\n""multiplicative_expression\n"" unary_expression .and .loop multiplicative_expression_1;\n""multiplicative_expression_1\n"" multiplicative_expression_2 .or multiplicative_expression_3;\n""multiplicative_expression_2\n"" star .and unary_expression .and .true .emit OP_MULTIPLY;\n""multiplicative_expression_3\n"" slash .and unary_expression .and .true .emit OP_DIVIDE;\n""additive_expression\n"" multiplicative_expression .and .loop additive_expression_1;\n""additive_expression_1\n"" additive_expression_2 .or additive_expression_3;\n""additive_expression_2\n"" plus .and multiplicative_expression .and .true .emit OP_ADD;\n""additive_expression_3\n"" minus .and multiplicative_expression .and .true .emit OP_SUBTRACT;\n""shift_expression\n"" additive_expression;\n""relational_expression\n"" shift_expression .and .loop relational_expression_1;\n""relational_expression_1\n"" relational_expression_2 .or relational_expression_3 .or relational_expression_4 .or\n"" relational_expression_5;\n""relational_expression_2\n"" lessequals .and shift_expression .and .true .emit OP_LESSEQUAL;\n""relational_expression_3\n"" greaterequals .and shift_expression .and .true .emit OP_GREATEREQUAL;\n""relational_expression_4\n"" less .and shift_expression .and .true .emit OP_LESS;\n""relational_expression_5\n"" greater .and shift_expression .and .true .emit OP_GREATER;\n""equality_expression\n"" relational_expression .and .loop equality_expression_1;\n""equality_expression_1\n"" equality_expression_2 .or equality_expression_3;\n""equality_expression_2\n"" equalsequals .and relational_expression .and .true .emit OP_EQUAL;\n""equality_expression_3\n"" bangequals .and relational_expression .and .true .emit OP_NOTEQUAL;\n""and_expression\n"" equality_expression;\n""exclusive_or_expression\n"" and_expression;\n""inclusive_or_expression\n"" exclusive_or_expression;\n""logical_and_expression\n"" inclusive_or_expression .and .loop logical_and_expression_1;\n""logical_and_expression_1\n"" ampersandampersand .and inclusive_or_expression .and .true .emit OP_LOGICALAND;\n""logical_xor_expression\n"" logical_and_expression .and .loop logical_xor_expression_1;\n""logical_xor_expression_1\n"" caretcaret .and logical_and_expression .and .true .emit OP_LOGICALXOR;\n""logical_or_expression\n"" logical_xor_expression .and .loop logical_or_expression_1;\n""logical_or_expression_1\n"" barbar .and logical_xor_expression .and .true .emit OP_LOGICALOR;\n""conditional_expression\n"" logical_or_expression .and .loop conditional_expression_1;\n""conditional_expression_1\n"" question .and expression .and colon .and conditional_expression .and .true .emit OP_SELECT;\n""assignment_expression\n"" assignment_expression_1 .or assignment_expression_2 .or assignment_expression_3 .or\n"" assignment_expression_4 .or assignment_expression_5 .or conditional_expression;\n""assignment_expression_1\n"" unary_expression .and equals .and assignment_expression .and .true .emit OP_ASSIGN;\n""assignment_expression_2\n"" unary_expression .and starequals .and assignment_expression .and .true .emit OP_MULASSIGN;\n""assignment_expression_3\n"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -