msad4 Function
Compares a 4-byte reference value and an 8-byte source value and accumulates a vector of 4 sums. Each sum corresponds to the masked sum of absolute differences of different byte alignments between the reference value and the source value.
inline uint4 msad4(
uint _Reference,
uint2 _Source,
uint4 _Accum
) restrict(amp);
Parameters
_Reference
The reference array of 4 bytes in one uint value_Source
The source array of 8 bytes in a vector of two uint values._Accum
A vector of 4 values to be added to the masked sum of absolute differences of the different byte alignments between the reference value and the source value.
Return Value
Returns a vector of 4 sums. Each sum corresponds to the masked sum of absolute differences of different byte alignments between the reference value and the source value.
Requirements
Header: amp_graphics.h
Namespace: concurrency::graphics::direct3d