三维rgb、坐标或者四维rgba存储的时候可以用这两个
使用示例:
float3 rgb = make_float3(rgb.x, rgb.y, rgb.z);
float4 rgba = make_float4(rgb, rgba.w);
make_float4
static __inline__ __host__ __device__ float4 make_float4(float x, float y, float z, float w)
{
float4 t; t.x = x; t.y = y; t.z = z; t.w = w; return t;
}