Hi,
I would like to know if in a OpenCL kernel I must initialize my structures values, float, float3 & float4 values ?
By example,
struct Color { float r; float g; float b; };
Color col;
col.r = col.g. = col.b = 0.f;
Or there is some better ways to perform this ?
hi viewon01,
What kind of ways are you expecting?
Of course,
But is it necessary ? Or we have default values assigned;
By example if I just do this :
What is the value of col.x, col.y, col.z ?
Are they undefined ? are they 0 ? Is it the same with float2, float3, float4 ?