--- layout: stdlib-reference --- # CoopVec\\.neg ## Description Returns a new cooperative vector where each component has its sign negated. ## Signature
CoopVec<T, N> CoopVec<T, int N>.neg()
    where T : __BuiltinArithmeticType;

CoopVec<T, N> CoopVec<T, N>.neg()
    where T : __BuiltinFloatingPointType;

## Return value A new cooperative vector containing the negated values. ## Availability and Requirements Defined for the following targets: #### hlsl Available in all stages. #### glsl Available in all stages. #### cpp Available in all stages. #### cuda Available in all stages. #### spirv Available in all stages. Requires capability: `spvCooperativeVectorNV`.