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

📄 arbprogram_syn.h

📁 这是一个开放源代码的与WINNT/WIN2K/WIN2003兼容的操作系统
💻 H
📖 第 1 页 / 共 4 页
字号:
".syntax program;\n"
".emtcode REVISION 0x09\n"
".emtcode FRAGMENT_PROGRAM 0x01\n"
".emtcode VERTEX_PROGRAM 0x02\n"
".emtcode OPTION 0x01\n"
".emtcode INSTRUCTION 0x02\n"
".emtcode DECLARATION 0x03\n"
".emtcode END 0x04\n"
".emtcode ARB_PRECISION_HINT_FASTEST 0x00\n"
".emtcode ARB_PRECISION_HINT_NICEST 0x01\n"
".emtcode ARB_FOG_EXP 0x02\n"
".emtcode ARB_FOG_EXP2 0x03\n"
".emtcode ARB_FOG_LINEAR 0x04\n"
".emtcode ARB_POSITION_INVARIANT 0x05\n"
".emtcode ARB_FRAGMENT_PROGRAM_SHADOW 0x06\n"
".emtcode ARB_DRAW_BUFFERS 0x07\n"
".emtcode OP_ALU_INST 0x00\n"
".emtcode OP_TEX_INST 0x01\n"
".emtcode OP_ALU_VECTOR 0x00\n"
".emtcode OP_ALU_SCALAR 0x01\n"
".emtcode OP_ALU_BINSC 0x02\n"
".emtcode OP_ALU_BIN 0x03\n"
".emtcode OP_ALU_TRI 0x04\n"
".emtcode OP_ALU_SWZ 0x05\n"
".emtcode OP_TEX_SAMPLE 0x06\n"
".emtcode OP_TEX_KIL 0x07\n"
".emtcode OP_ALU_ARL 0x08\n"
".emtcode OP_ABS 0x00\n"
".emtcode OP_ABS_SAT 0x1B\n"
".emtcode OP_FLR 0x09\n"
".emtcode OP_FLR_SAT 0x26\n"
".emtcode OP_FRC 0x0A\n"
".emtcode OP_FRC_SAT 0x27\n"
".emtcode OP_LIT 0x0C\n"
".emtcode OP_LIT_SAT 0x2A\n"
".emtcode OP_MOV 0x11\n"
".emtcode OP_MOV_SAT 0x30\n"
".emtcode OP_COS 0x1F\n"
".emtcode OP_COS_SAT 0x20\n"
".emtcode OP_EX2 0x07\n"
".emtcode OP_EX2_SAT 0x25\n"
".emtcode OP_LG2 0x0B\n"
".emtcode OP_LG2_SAT 0x29\n"
".emtcode OP_RCP 0x14\n"
".emtcode OP_RCP_SAT 0x33\n"
".emtcode OP_RSQ 0x15\n"
".emtcode OP_RSQ_SAT 0x34\n"
".emtcode OP_SIN 0x38\n"
".emtcode OP_SIN_SAT 0x39\n"
".emtcode OP_SCS 0x35\n"
".emtcode OP_SCS_SAT 0x36\n"
".emtcode OP_POW 0x13\n"
".emtcode OP_POW_SAT 0x32\n"
".emtcode OP_ADD 0x01\n"
".emtcode OP_ADD_SAT 0x1C\n"
".emtcode OP_DP3 0x03\n"
".emtcode OP_DP3_SAT 0x21\n"
".emtcode OP_DP4 0x04\n"
".emtcode OP_DP4_SAT 0x22\n"
".emtcode OP_DPH 0x05\n"
".emtcode OP_DPH_SAT 0x23\n"
".emtcode OP_DST 0x06\n"
".emtcode OP_DST_SAT 0x24\n"
".emtcode OP_MAX 0x0F\n"
".emtcode OP_MAX_SAT 0x2E\n"
".emtcode OP_MIN 0x10\n"
".emtcode OP_MIN_SAT 0x2F\n"
".emtcode OP_MUL 0x12\n"
".emtcode OP_MUL_SAT 0x31\n"
".emtcode OP_SGE 0x16\n"
".emtcode OP_SGE_SAT 0x37\n"
".emtcode OP_SLT 0x17\n"
".emtcode OP_SLT_SAT 0x3A\n"
".emtcode OP_SUB 0x18\n"
".emtcode OP_SUB_SAT 0x3B\n"
".emtcode OP_XPD 0x1A\n"
".emtcode OP_XPD_SAT 0x43\n"
".emtcode OP_CMP 0x1D\n"
".emtcode OP_CMP_SAT 0x1E\n"
".emtcode OP_LRP 0x2B\n"
".emtcode OP_LRP_SAT 0x2C\n"
".emtcode OP_MAD 0x0E\n"
".emtcode OP_MAD_SAT 0x2D\n"
".emtcode OP_SWZ 0x19\n"
".emtcode OP_SWZ_SAT 0x3C\n"
".emtcode OP_TEX 0x3D\n"
".emtcode OP_TEX_SAT 0x3E\n"
".emtcode OP_TXB 0x3F\n"
".emtcode OP_TXB_SAT 0x40\n"
".emtcode OP_TXP 0x41\n"
".emtcode OP_TXP_SAT 0x42\n"
".emtcode OP_KIL 0x28\n"
".emtcode OP_ARL 0x02\n"
".emtcode OP_EXP 0x08\n"
".emtcode OP_LOG 0x0D\n"
".emtcode FRAGMENT_ATTRIB_COLOR 0x01\n"
".emtcode FRAGMENT_ATTRIB_TEXCOORD 0x02\n"
".emtcode FRAGMENT_ATTRIB_FOGCOORD 0x03\n"
".emtcode FRAGMENT_ATTRIB_POSITION 0x04\n"
".emtcode VERTEX_ATTRIB_POSITION 0x01\n"
".emtcode VERTEX_ATTRIB_WEIGHT 0x02\n"
".emtcode VERTEX_ATTRIB_NORMAL 0x03\n"
".emtcode VERTEX_ATTRIB_COLOR 0x04\n"
".emtcode VERTEX_ATTRIB_FOGCOORD 0x05\n"
".emtcode VERTEX_ATTRIB_TEXCOORD 0x06\n"
".emtcode VERTEX_ATTRIB_MATRIXINDEX 0x07\n"
".emtcode VERTEX_ATTRIB_GENERIC 0x08\n"
".emtcode FRAGMENT_RESULT_COLOR 0x01\n"
".emtcode FRAGMENT_RESULT_DEPTH 0x02\n"
".emtcode VERTEX_RESULT_POSITION 0x01\n"
".emtcode VERTEX_RESULT_COLOR 0x02\n"
".emtcode VERTEX_RESULT_FOGCOORD 0x03\n"
".emtcode VERTEX_RESULT_POINTSIZE 0x04\n"
".emtcode VERTEX_RESULT_TEXCOORD 0x05\n"
".emtcode TEXTARGET_1D 0x01\n"
".emtcode TEXTARGET_2D 0x02\n"
".emtcode TEXTARGET_3D 0x03\n"
".emtcode TEXTARGET_RECT 0x04\n"
".emtcode TEXTARGET_CUBE 0x05\n"
".emtcode TEXTARGET_SHADOW1D 0x06\n"
".emtcode TEXTARGET_SHADOW2D 0x07\n"
".emtcode TEXTARGET_SHADOWRECT 0x08\n"
".emtcode FACE_FRONT 0x00\n"
".emtcode FACE_BACK 0x01\n"
".emtcode COLOR_PRIMARY 0x00\n"
".emtcode COLOR_SECONDARY 0x01\n"
".emtcode COMPONENT_X 0x00\n"
".emtcode COMPONENT_Y 0x01\n"
".emtcode COMPONENT_Z 0x02\n"
".emtcode COMPONENT_W 0x03\n"
".emtcode COMPONENT_0 0x04\n"
".emtcode COMPONENT_1 0x05\n"
".emtcode ARRAY_INDEX_ABSOLUTE 0x00\n"
".emtcode ARRAY_INDEX_RELATIVE 0x01\n"
".emtcode MATRIX_MODELVIEW 0x01\n"
".emtcode MATRIX_PROJECTION 0x02\n"
".emtcode MATRIX_MVP 0x03\n"
".emtcode MATRIX_TEXTURE 0x04\n"
".emtcode MATRIX_PALETTE 0x05\n"
".emtcode MATRIX_PROGRAM 0x06\n"
".emtcode MATRIX_MODIFIER_IDENTITY 0x00\n"
".emtcode MATRIX_MODIFIER_INVERSE 0x01\n"
".emtcode MATRIX_MODIFIER_TRANSPOSE 0x02\n"
".emtcode MATRIX_MODIFIER_INVTRANS 0x03\n"
".emtcode CONSTANT_SCALAR 0x01\n"
".emtcode CONSTANT_VECTOR 0x02\n"
".emtcode PROGRAM_PARAM_ENV 0x01\n"
".emtcode PROGRAM_PARAM_LOCAL 0x02\n"
".emtcode REGISTER_ATTRIB 0x01\n"
".emtcode REGISTER_PARAM 0x02\n"
".emtcode REGISTER_RESULT 0x03\n"
".emtcode REGISTER_ESTABLISHED_NAME 0x04\n"
".emtcode PARAM_NULL 0x00\n"
".emtcode PARAM_ARRAY_ELEMENT 0x01\n"
".emtcode PARAM_STATE_ELEMENT 0x02\n"
".emtcode PARAM_PROGRAM_ELEMENT 0x03\n"
".emtcode PARAM_PROGRAM_ELEMENTS 0x04\n"
".emtcode PARAM_CONSTANT 0x05\n"
".emtcode STATE_MATERIAL 0x01\n"
".emtcode STATE_LIGHT 0x02\n"
".emtcode STATE_LIGHT_MODEL 0x03\n"
".emtcode STATE_LIGHT_PROD 0x04\n"
".emtcode STATE_FOG 0x05\n"
".emtcode STATE_MATRIX_ROWS 0x06\n"
".emtcode STATE_TEX_ENV 0x07\n"
".emtcode STATE_DEPTH 0x08\n"
".emtcode STATE_TEX_GEN 0x09\n"
".emtcode STATE_CLIP_PLANE 0x0A\n"
".emtcode STATE_POINT 0x0B\n"
".emtcode MATERIAL_AMBIENT 0x01\n"
".emtcode MATERIAL_DIFFUSE 0x02\n"
".emtcode MATERIAL_SPECULAR 0x03\n"
".emtcode MATERIAL_EMISSION 0x04\n"
".emtcode MATERIAL_SHININESS 0x05\n"
".emtcode LIGHT_AMBIENT 0x01\n"
".emtcode LIGHT_DIFFUSE 0x02\n"
".emtcode LIGHT_SPECULAR 0x03\n"
".emtcode LIGHT_POSITION 0x04\n"
".emtcode LIGHT_ATTENUATION 0x05\n"
".emtcode LIGHT_HALF 0x06\n"
".emtcode LIGHT_SPOT_DIRECTION 0x07\n"
".emtcode LIGHT_MODEL_AMBIENT 0x01\n"
".emtcode LIGHT_MODEL_SCENECOLOR 0x02\n"
".emtcode LIGHT_PROD_AMBIENT 0x01\n"
".emtcode LIGHT_PROD_DIFFUSE 0x02\n"
".emtcode LIGHT_PROD_SPECULAR 0x03\n"
".emtcode TEX_ENV_COLOR 0x01\n"
".emtcode TEX_GEN_EYE 0x01\n"
".emtcode TEX_GEN_OBJECT 0x02\n"
".emtcode FOG_COLOR 0x01\n"
".emtcode FOG_PARAMS 0x02\n"
".emtcode DEPTH_RANGE 0x01\n"
".emtcode POINT_SIZE 0x01\n"
".emtcode POINT_ATTENUATION 0x02\n"
".emtcode ATTRIB 0x01\n"
".emtcode PARAM 0x02\n"
".emtcode TEMP 0x03\n"
".emtcode OUTPUT 0x04\n"
".emtcode ALIAS 0x05\n"
".emtcode ADDRESS 0x06\n"
".errtext UNKNOWN_PROGRAM_SIGNATURE \"1001: '$e_signature$': unknown program signature\"\n"
".errtext MISSING_END_OR_INVALID_STATEMENT \"1002: '$e_statement$': invalid statement\"\n"
".errtext CODE_AFTER_END \"1003: '$e_statement$': code after 'END' keyword\"\n"
".errtext INVALID_PROGRAM_OPTION \"1004: '$e_identifier$': invalid program option\"\n"
".errtext EXT_SWIZ_COMP_EXPECTED \"1005: extended swizzle component expected but '$e_token$' found\"\n"
".errtext TEX_TARGET_EXPECTED \"1006: texture target expected but '$e_token$' found\"\n"
".errtext TEXTURE_EXPECTED \"1007: 'texture' expected but '$e_identifier$' found\"\n"
".errtext SOURCE_REGISTER_EXPECTED \"1008: source register expected but '$e_token$' found\"\n"
".errtext DESTINATION_REGISTER_EXPECTED \"1009: destination register expected but '$e_token$' found\"\n"
".errtext INVALID_ADDRESS_COMPONENT \"1010: '$e_identifier$': invalid address component\"\n"
".errtext INVALID_ADDRESS_WRITEMASK \"1011: '$e_identifier$': invalid address writemask\"\n"
".errtext INVALID_COMPONENT \"1012: '$e_charordigit$': invalid component\"\n"
".errtext INVALID_SUFFIX \"1013: '$e_identifier$': invalid suffix\"\n"
".errtext INVALID_WRITEMASK \"1014: '$e_identifier$': invalid writemask\"\n"
".errtext FRAGMENT_EXPECTED \"1015: 'fragment' expected but '$e_identifier$' found\"\n"
".errtext VERTEX_EXPECTED \"1016: 'vertex' expected but '$e_identifier$' found\"\n"
".errtext INVALID_FRAGMENT_PROPERTY \"1017: '$e_identifier$': invalid fragment property\"\n"
".errtext INVALID_VERTEX_PROPERTY \"1018: '$e_identifier$': invalid vertex property\"\n"
".errtext INVALID_STATE_PROPERTY \"1019: '$e_identifier$': invalid state property\"\n"
".errtext INVALID_MATERIAL_PROPERTY \"1020: '$e_identifier$': invalid material property\"\n"
".errtext INVALID_LIGHT_PROPERTY \"1021: '$e_identifier$': invalid light property\"\n"
".errtext INVALID_SPOT_PROPERTY \"1022: '$e_identifier$': invalid spot property\"\n"
".errtext INVALID_LIGHTMODEL_PROPERTY \"1023: '$e_identifier$': invalid light model property\"\n"
".errtext INVALID_LIGHTPROD_PROPERTY \"1024: '$e_identifier$': invalid light product property\"\n"
".errtext INVALID_TEXENV_PROPERTY \"1025: '$e_identifier$': invalid texture environment property\"\n"
".errtext INVALID_TEXGEN_PROPERTY \"1026: '$e_identifier$': invalid texture generating property\"\n"
".errtext INVALID_TEXGEN_COORD \"1027: '$e_identifier$': invalid texture generating coord\"\n"
".errtext INVALID_FOG_PROPERTY \"1028: '$e_identifier$': invalid fog property\"\n"
".errtext INVALID_DEPTH_PROPERTY \"1029: '$e_identifier$': invalid depth property\"\n"
".errtext INVALID_CLIPPLANE_PROPERTY \"1030: '$e_identifier$': invalid clip plane property\"\n"
".errtext INVALID_POINT_PROPERTY \"1031: '$e_identifier$': invalid point property\"\n"
".errtext MATRIX_ROW_SELECTOR_OR_MODIFIER_EXPECTED \"1032: matrix row selector or modifier expected but '$e_token$' found\"\n"
".errtext INVALID_MATRIX_NAME \"1033: '$e_identifier$': invalid matrix name\"\n"
".errtext INVALID_PROGRAM_PROPERTY \"1034: '$e_identifier$': invalid program property\"\n"
".errtext RESULT_EXPECTED \"1035: 'result' expected but '$e_token$' found\"\n"
".errtext INVALID_RESULT_PROPERTY \"1036: '$e_identifier$': invalid result property\"\n"
".errtext INVALID_FACE_PROPERTY \"1037: '$e_identifier$': invalid face property\"\n"
".errtext INVALID_COLOR_PROPERTY \"1038: '$e_identifier$': invalid color property\"\n"
".errtext IDENTIFIER_EXPECTED \"1039: identifier expected but '$e_token$' found\"\n"
".errtext RESERVED_KEYWORD \"1040: use of reserved keyword as an identifier\"\n"
".errtext INTEGER_EXPECTED \"1041: integer value expected but '$e_token$' found\"\n"
".errtext MISSING_SEMICOLON \"1042: ';' expected but '$e_token$' found\"\n"
".errtext MISSING_COMMA \"1043: ',' expected but '$e_token$' found\"\n"
".errtext MISSING_LBRACKET \"1044: '[' expected but '$e_token$' found\"\n"
".errtext MISSING_RBRACKET \"1045: ']' expected but '$e_token$' found\"\n"
".errtext MISSING_DOT \"1046: '.' expected but '$e_token$' found\"\n"
".errtext MISSING_EQUAL \"1047: '=' expected but '$e_token$' found\"\n"
".errtext MISSING_LBRACE \"1048: '{' expected but '$e_token$' found\"\n"
".errtext MISSING_RBRACE \"1049: '}' expected but '$e_token$' found\"\n"
".errtext MISSING_DOTDOT \"1050: '..' expected but '$e_token$' found\"\n"
".errtext MISSING_FRACTION_OR_EXPONENT \"1051: missing fraction part or exponent\"\n"
".errtext MISSING_DOT_OR_EXPONENT \"1052: missing '.' or exponent\"\n"
".errtext EXPONENT_VALUE_EXPECTED \"1053: exponent value expected\"\n"
".errtext INTEGER_OUT_OF_RANGE \"1054: integer value out of range\"\n"
".errtext OPERATION_NEEDS_DESTINATION_VARIABLE \"1055: operation needs destination variable\"\n"
".errtext OPERATION_NEEDS_SOURCE_VARIABLE \"1056: operation needs source variable\"\n"
".errtext ADDRESS_REGISTER_EXPECTED \"1057: address register expected but '$e_token$' found\"\n"
".errtext ADDRESS_REGISTER_OR_INTEGER_EXPECTED \"1058: address register or integer literal expected but '$e_token$' found\"\n"
".regbyte vertex_blend 0x00\n"
".regbyte matrix_palette 0x00\n"
".regbyte point_parameters 0x00\n"
".regbyte secondary_color 0x00\n"
".regbyte fog_coord 0x00\n"
".regbyte texture_rectangle 0x00\n"
".regbyte fragment_program_shadow 0x00\n"
".regbyte draw_buffers 0x00\n"
".regbyte ARB_precision_hint_fastest 0x00\n"
".regbyte ARB_precision_hint_nicest 0x00\n"
".regbyte ARB_fog_exp 0x00\n"
".regbyte ARB_fog_exp2 0x00\n"
".regbyte ARB_fog_linear 0x00\n"
".regbyte ARB_position_invariant 0x00\n"
".regbyte ARB_fragment_program_shadow 0x00\n"
".regbyte ARB_draw_buffers 0x00\n"
".regbyte program_target 0x00\n"
"program\n"
" programs .error UNKNOWN_PROGRAM_SIGNATURE .emit REVISION;\n"
"programs\n"
" .if (program_target == 0x10) frag_program_1_0 .emit FRAGMENT_PROGRAM .emit 0x01 .emit 0x00 .or\n"
" .if (program_target == 0x20) vert_program_1_0 .emit VERTEX_PROGRAM .emit 0x01 .emit 0x00;\n"
"frag_program_1_0\n"
" '!' .and '!' .and 'A' .and 'R' .and 'B' .and 'f' .and 'p' .and '1' .and '.' .and '0' .and\n"
" optional_space .and fp_optionSequence .and fp_statementSequence .and\n"
" \"END\" .error MISSING_END_OR_INVALID_STATEMENT .emit END .and optional_space .and\n"
" '\\0' .error CODE_AFTER_END;\n"
"vert_program_1_0\n"
" '!' .and '!' .and 'A' .and 'R' .and 'B' .and 'v' .and 'p' .and '1' .and '.' .and '0' .and\n"
" optional_space .and vp_optionSequence .and vp_statementSequence .and\n"
" \"END\" .error MISSING_END_OR_INVALID_STATEMENT .emit END .and optional_space .and\n"
" '\\0' .error CODE_AFTER_END;\n"
"fp_optionSequence\n"
" .loop fp_option;\n"
"vp_optionSequence\n"
" .loop vp_option;\n"
"fp_option\n"
" \"OPTION\" .emit OPTION .and space .error IDENTIFIER_EXPECTED .and\n"
" fp_optionString .error INVALID_PROGRAM_OPTION .and semicolon;\n"
"vp_option\n"
" \"OPTION\" .emit OPTION .and space .error IDENTIFIER_EXPECTED .and\n"
" vp_optionString .error INVALID_PROGRAM_OPTION .and semicolon;\n"
"fp_optionString\n"
" .if (ARB_precision_hint_nicest == 0x00) \"ARB_precision_hint_fastest\"\n"
" .emit ARB_PRECISION_HINT_FASTEST .load ARB_precision_hint_fastest 0x01 .or\n"
" .if (ARB_precision_hint_fastest == 0x00) \"ARB_precision_hint_nicest\"\n"
" .emit ARB_PRECISION_HINT_NICEST .load ARB_precision_hint_nicest 0x01 .or\n"
" fp_ARB_fog_exp .emit ARB_FOG_EXP .load ARB_fog_exp 0x01 .or\n"
" fp_ARB_fog_exp2 .emit ARB_FOG_EXP2 .load ARB_fog_exp2 0x01 .or\n"
" fp_ARB_fog_linear .emit ARB_FOG_LINEAR .load ARB_fog_linear 0x01 .or\n"
" .if (fragment_program_shadow != 0x00) \"ARB_fragment_program_shadow\"\n"
" .emit ARB_FRAGMENT_PROGRAM_SHADOW .load ARB_fragment_program_shadow 0x01 .or\n"
" .if (draw_buffers != 0x00) \"ARB_draw_buffers\" .emit ARB_DRAW_BUFFERS\n"
" .load ARB_draw_buffers 0x01;\n"
"vp_optionString\n"
" \"ARB_position_invariant\" .emit ARB_POSITION_INVARIANT .load ARB_position_invariant 0x01;\n"
"fp_ARB_fog_exp\n"
" .if (ARB_fog_exp2 == 0x00) .true .and .if (ARB_fog_linear == 0x00) \"ARB_fog_exp\";\n"
"fp_ARB_fog_exp2\n"
" .if (ARB_fog_exp == 0x00) .true .and .if (ARB_fog_linear == 0x00) \"ARB_fog_exp2\";\n"
"fp_ARB_fog_linear\n"
" .if (ARB_fog_exp == 0x00) .true .and .if (ARB_fog_exp2 == 0x00) \"ARB_fog_linear\";\n"
"fp_statementSequence\n"
" .loop fp_statement;\n"
"vp_statementSequence\n"
" .loop vp_statement;\n"
"fp_statement\n"
" fp_statement_1 .or fp_statement_2;\n"
"vp_statement\n"
" vp_statement_1 .or vp_statement_2;\n"
"fp_statement_1\n"
" fp_instruction .emit INSTRUCTION .emit $ .and semicolon;\n"
"fp_statement_2\n"
" fp_namingStatement .emit DECLARATION .and semicolon;\n"

⌨️ 快捷键说明

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