Add a couple more variable types, need to fill this in eventually

This commit is contained in:
baldurk
2014-08-13 15:33:27 +01:00
parent 5df45e8b5b
commit 279c43c352
+16
View File
@@ -447,6 +447,14 @@ void MakeShaderReflection(const GLHookSet &gl, GLenum shadType, GLuint sepProg,
var.type.descriptor.cols = 4;
var.type.descriptor.elements = RDCMAX(1, values[4]);
}
else if(values[0] == GL_FLOAT_MAT4x2)
{
var.type.descriptor.name = "mat4x2";
var.type.descriptor.type = eVar_Float;
var.type.descriptor.rows = 2;
var.type.descriptor.cols = 4;
var.type.descriptor.elements = RDCMAX(1, values[4]);
}
else if(values[0] == GL_UNSIGNED_INT_VEC4)
{
var.type.descriptor.name = "uvec4";
@@ -463,6 +471,14 @@ void MakeShaderReflection(const GLHookSet &gl, GLenum shadType, GLuint sepProg,
var.type.descriptor.cols = 1;
var.type.descriptor.elements = RDCMAX(1, values[4]);
}
else if(values[0] == GL_FLOAT)
{
var.type.descriptor.name = "float";
var.type.descriptor.type = eVar_Float;
var.type.descriptor.rows = 1;
var.type.descriptor.cols = 1;
var.type.descriptor.elements = RDCMAX(1, values[4]);
}
else
{
// fill in more uniform types