d3d8tod3d9shim/ShaderAnalysis.cpp
// Returns the opcode as a string suitable for diassembly

Returns the opcode as a string suitable for diassembly
Returns the opcode as a string suitable for diassembly
const char* const ShaderInfo::GetOpcodeString(const D3DSHADER_INSTRUCTION_OPCODE_TYPE opcode)
{
	if (opcode <= D3DSIO_BREAKP)
		return opcodeToString[opcode];
	else if (opcode >= D3DSIO_PHASE && opcode <= D3DSIO_END)
		return endOpcodes[opcode - D3DSIO_PHASE];
	else
		return "UNKNOWN_OPCODE";
}
const char * const ShaderInfo :: GetOpcodeString ( const D3DSHADER_INSTRUCTION_OPCODE_TYPE opcode ) { if ( opcode <= D3DSIO_BREAKP ) return opcodeToString [ opcode ] ; else if ( opcode >= D3DSIO_PHASE && opcode <= D3DSIO_END ) return endOpcodes [ opcode - D3DSIO_PHASE ] ; else return " " ; }
Returns the opcode as a string suitable for diassembly
Returns the opcode as a string suitable for diassembly