Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns the color of input N at the input coordinate. Only available for simple inputs.
Syntax
float4 WINAPI D2DGetInput(
in uint N
);
Parameters
-
N [in]
-
The input number.
Return value
The function returns a float4, containing the RGBA color in the format INPUTN.
Remarks
The following example shows the function being used as part of an arithmetic composite effect.
D2D_PS_ENTRY(PS_NAME)
{
MIN_TYPE(float4) sourceColor = D2DGetInput(0);
MIN_TYPE(float4) destColor = D2DGetInput(1);
MIN_TYPE(float4) output = // TODO: add math to composite source and dest
return output;
}
Also, refer to the remarks for D2D_PS_ENTRY for another example of the use of this function.
Requirements
Requirement | Value |
---|---|
Header |
|
DLL |
|