ID2D1RenderInfo::SetInputDescription method (d2d1effectauthor.h)

Sets how a specific input to the transform should be handled by the renderer in terms of sampling.

Syntax

HRESULT SetInputDescription(
  UINT32                 inputIndex,
  D2D1_INPUT_DESCRIPTION inputDescription
);

Parameters

inputIndex

Type: UINT32

The index of the input that will have the input description applied.

inputDescription

Type: D2D1_INPUT_DESCRIPTION

The description of the input to be applied to the transform.

Return value

Type: HRESULT

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

HRESULT Description
S_OK No error occurred.
E_INVALIDARG An invalid parameter was passed to the returning function.

Remarks

The input description must be matched correctly by the effect shader code.

Requirements

Requirement Value
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]
Target Platform Windows
Header d2d1effectauthor.h
Library D2d1.lib

See also

D2D1_BUFFER_PRECISION

D2D1_CHANNEL_DEPTH

ID2D1DeviceContext::SetRenderingControls

ID2D1RenderInfo