Returns the input rectangles that are required to be supplied by the caller to produce the given output rectangle.
HRESULT GetEffectRequiredInputRectangles( ID2D1Effect *renderEffect, const D2D1_RECT_F *renderImageRectangle, const D2D1_EFFECT_INPUT_DESCRIPTION *inputDescriptions, D2D1_RECT_F *requiredInputRects, UINT32 inputCount );
The image whose output is being rendered.
Type: const D2D1_RECT_F*
The portion of the output image whose inputs are being inspected.
Type: const D2D1_EFFECT_INPUT_DESCRIPTION*
A list of the inputs whos rectangles are being queried.
The input rectangles returned to the caller.
The number of inputs.
A failure code, this will typically only be because an effect in the chain returned some error.
The caller should be very careful not to place a reliance on the required input rectangles returned. Small changes for correctness to an effect's behavior can result in different rectangles being returned. In addition, different kinds of optimization applied inside the render can also influence the result.
|Minimum supported client||Windows 8 and Platform Update for Windows 7 [desktop apps | UWP apps]|
|Minimum supported server||Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | UWP apps]|