This one-liner works for x==y: x ^= y ^ (y = x); Is this really code, or some kind of new text emojis? :)
x ^= y ^ (y = x); //one-liner
HLSL can swap the x and y values of a float2 with swizzling: a = a.yx;
Weed killers and insecticides. Birds die when you poison and kill their food.
This one-liner works for x==y: x ^= y ^ (y = x); Is this really code, or some kind of new text emojis? :)
x ^= y ^ (y = x); //one-liner
HLSL can swap the x and y values of a float2 with swizzling: a = a.yx;
Weed killers and insecticides. Birds die when you poison and kill their food.