#include #include #include #include int main(int argc, char **argv) { // declare texture size, the actual data will be a vector // of size texSize*texSize*4 int texSize = 2; int i; // create test data float* data = (float*)malloc(4*texSize*texSize*sizeof(float)); float* result = (float*)malloc(4*texSize*texSize*sizeof(float)); for (i=0; i