#include <vertex_program_parse.h>
Definition at line 140 of file vertex_program_parse.h.
Public Types | |
| enum | EOpcode { MOV = 0, ARL, MUL, ADD, MAD, RSQ, DP3, DP4, DST, LIT, MIN, MAX, SLT, SGE, EXPP, LOG, RCP, OpcodeCount } |
Public Member Functions | |
| uint | getNumUsedSrc () const |
| const CVPOperand & | getSrc (uint index) const |
Data Fields | |
| CVPOperand | Dest |
| EOpcode | Opcode |
| CVPOperand | Src1 |
| CVPOperand | Src2 |
| CVPOperand | Src3 |
|
|
Definition at line 142 of file vertex_program_parse.h.
|
|
|
Definition at line 108 of file vertex_program_parse.cpp. References ADD, ARL, DP3, DP4, DST, EXPP, LIT, LOG, MAD, MAX, MIN, MOV, MUL, nlstop, Opcode, RCP, RSQ, SGE, SLT, and uint. Referenced by dumpInstr(), and getSrc().
00109 {
00110 switch(Opcode)
00111 {
00112 case CVPInstruction::ARL:
00113 case CVPInstruction::RSQ:
00114 case CVPInstruction::EXPP:
00115 case CVPInstruction::LOG:
00116 case CVPInstruction::RCP:
00117 case CVPInstruction::MOV:
00118 case CVPInstruction::LIT:
00119 return 1;
00120 //
00121 case CVPInstruction::MAD:
00122 return 3;
00123 //
00124 case CVPInstruction::MUL:
00125 case CVPInstruction::ADD:
00126 case CVPInstruction::DP3:
00127 case CVPInstruction::DP4:
00128 case CVPInstruction::DST:
00129 case CVPInstruction::MIN:
00130 case CVPInstruction::MAX:
00131 case CVPInstruction::SLT:
00132 case CVPInstruction::SGE:
00133 return 2;
00134 //
00135 default:
00136 nlstop;
00137 }
00138 return 0;
00139 }
|
|
|
Definition at line 169 of file vertex_program_parse.h. References getNumUsedSrc(), index, nlassert, nlstop, Src1, Src2, Src3, and uint. Referenced by dumpInstr().
|
|
|
Definition at line 164 of file vertex_program_parse.h. Referenced by dumpInstr(), CVPParser::parseInstruction(), and CVPParser::parseOp2(). |
|
|
Definition at line 163 of file vertex_program_parse.h. Referenced by dumpInstr(), getNumUsedSrc(), and CVPParser::parseInstruction(). |
|
|
Definition at line 165 of file vertex_program_parse.h. Referenced by getSrc(), CVPParser::parseInstruction(), CVPParser::parseOp2(), CVPParser::parseOp3(), and CVPParser::parseOp4(). |
|
|
Definition at line 166 of file vertex_program_parse.h. Referenced by getSrc(), CVPParser::parseOp3(), and CVPParser::parseOp4(). |
|
|
Definition at line 167 of file vertex_program_parse.h. Referenced by getSrc(), and CVPParser::parseOp4(). |
1.3.6