ineg (sm4 - asm)
2's complement.
ineg dest[.mask], src0[.swizzle] |
---|
Item | Description |
---|---|
dest |
[in] The address of the result of the operation. |
src0 |
[in] Contains the values for the operation. |
Remarks
This instruction performs component-wise 2's complement of each 32-bit value in src0. The 32-bit results are stored in dest.
This instruction applies to the following shader stages:
Vertex Shader | Geometry Shader | Pixel Shader |
---|---|---|
x | x | x |
Minimum Shader Model
This function is supported in the following shader models.
Shader Model | Supported |
---|---|
Shader Model 5 | yes |
Shader Model 4.1 | yes |
Shader Model 4 | yes |
Shader Model 3 (DirectX HLSL) | no |
Shader Model 2 (DirectX HLSL) | no |
Shader Model 1 (DirectX HLSL) | no |
Related topics
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for