private unsafe void setVector4Array() { fixed(void *ptr = ((Vector4[])valueArrayObject.Target)) { GL.Uniform4fv(location, valueArrayCount, (float *)ptr + (valueArrayOffset * 4)); } }