The operand of the logical negation operator ! is contextually converted to bool (7.3); its value is true if the converted operand is false and false otherwise. The type of the result is bool. HLSL ...