D2DSampleInputAtPosition function
Samples input N at an absolute scene position, rather than an input-relative position. Only available for complex inputs.
Syntax
float4 WINAPI D2DSampleInputAtPosition(
in uint N,
in float2 uv
);
Parameters
-
N [in]
-
The input number.
-
uv [in]
-
The uv position.
Return value
The function returns a float4, in the format TEXCOORDN.
Remarks
The following example shows the function used in a circular wrap.
D2D_PS_ENTRY(CircularWrapPS)
{
// TODO: perform math to calculate a circular wrap
// Find the input scene position.
float2 inputScenePosition = float2( TODO: add math parameters );
return D2DSampleInputAtPosition(0, inputScenePosition);
}
Requirements
Requirement | Value |
---|---|
Header |
|
DLL |
|
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for