Thanks for responding… unfortunately, typecasting doesn’t work! It doesn’t matter if I try to cast one thing as a volatile float2, or the other as a float2. Both cases give me the same ol ‘error: no operator “=” matches these operands’
My only workaround is to refer to the .x and .y components of each variable. Then mixing and matching volatile and non-volatile works fine. I’d love to be able to avoid this!
Thanks for responding… unfortunately, typecasting doesn’t work! It doesn’t matter if I try to cast one thing as a volatile float2, or the other as a float2. Both cases give me the same ol ‘error: no operator “=” matches these operands’
My only workaround is to refer to the .x and .y components of each variable. Then mixing and matching volatile and non-volatile works fine. I’d love to be able to avoid this!
I found a way to do the conversion without the compiler complaining. It is ugly I know, but basically you take the address the volatile float2 to get a pointer, cast the pointer to a float2*, then dereference the pointer, which is now a float2, not volatile. So: