Where exactly is the difference between pixel4 and float4 data types?
Why does pixel4 ever exist? As I understand it, both data types are float4 and can hold 4 float values?
Wouldn't it be more self explanatory when only float4 exists?
A float4 is a vector of four floats. A pixel4 is a vector of four pixels. Currently, the two types are interchangeable but that may change in the future. It is best to use float4 throughout the majority of your code and only use the pixel types at the edge of the interface when assigning a value to the output.
They are the same thing, it is a convenience.
that's exactly how I used it in the past and it worked!
just wanted to spread some light into this...
I just asked to know if there is something bigger behind this that I have missed up to now...
Thanks everything is clear now and we can close this thread