|
|
|
@ -309,7 +309,7 @@ static uint convInputRegisterToVBFlag(uint index)
|
|
|
|
|
// For debugging with swizzling
|
|
|
|
|
static void doSwizzle(GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW)
|
|
|
|
|
{
|
|
|
|
|
H_AUTO_OGL(doSwizzle)
|
|
|
|
|
H_AUTO_OGL(doSwizzle);
|
|
|
|
|
nglSwizzleEXT(res, in, outX, outY, outZ, outW);
|
|
|
|
|
#ifdef DEBUG_SETUP_EXT_VERTEX_SHADER
|
|
|
|
|
std::string swzStr = "Swizzle : ";
|
|
|
|
@ -359,7 +359,7 @@ static void doSwizzle(GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum ou
|
|
|
|
|
// Perform write mask and output de bug information
|
|
|
|
|
static void doWriteMask(GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW)
|
|
|
|
|
{
|
|
|
|
|
H_AUTO_OGL(doWriteMask)
|
|
|
|
|
H_AUTO_OGL(doWriteMask);
|
|
|
|
|
nglWriteMaskEXT(res, in, outX, outY, outZ, outW);
|
|
|
|
|
#ifdef DEBUG_SETUP_EXT_VERTEX_SHADER
|
|
|
|
|
nlinfo("3D: Write Mask : %c%c%c%c",
|
|
|
|
@ -376,7 +376,7 @@ static void doWriteMask(GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum
|
|
|
|
|
*/
|
|
|
|
|
bool CDriverGL::setupEXTVertexShader(const CVPParser::TProgram &program, GLuint id, uint variants[EVSNumVariants], uint16 &usedInputRegisters)
|
|
|
|
|
{
|
|
|
|
|
H_AUTO_OGL(CDriverGL_setupEXTVertexShader)
|
|
|
|
|
H_AUTO_OGL(CDriverGL_setupEXTVertexShader);
|
|
|
|
|
// counter to see what is generated
|
|
|
|
|
uint numOp = 0;
|
|
|
|
|
uint numOpIndex = 0;
|
|
|
|
|