#include #include #include #include static texSize = 4; static GLenum textarget = GL_TEXTURE_2D; static GLenum texinternalformat = GL_RGBA_FLOAT32_ATI; int main(int argc, char **argv) { // declare texture size, the actual data will be a vector // of size texSize*texSize*4 // create test data and fill arbitrarily float* data = (float*)malloc(4*texSize*texSize*sizeof(float)); float* result = (float*)malloc(4*texSize*texSize*sizeof(float)); for (int i=0; i