D2DGetInput function
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 |
|
See also
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για