Hey all. I am trying to create a float2 using make_float2, but the struct that is being returned has members with values equal to 1.
Here is the code I am using:
float2 t = make_float2( (rand() / RAND_MAX + 1.0f),(rand() / RAND_MAX + 1.0f)); std::cout << t.x << " " << t.y << std::endl; return t;
This code consistently prints “1 1”. Any ideas?