PixelShaderEffectMaxSamplerOffset Property |
Namespace: Microsoft.Graphics.Canvas.Effects
Offset mapping mode is intended for use with shaders that call D2DSampleInputAtOffset. Correctly describing the maximum offset allows the effect runtime to know what region of each source image needs to be computed before a given output area can be drawn.
Beware: specifying this information wrongly (for instance if your shader actually samples further away from the current pixel than the current MaxSamplerOffset) can give unpredictably wrong results.
This value is specified in pixels (not dips).
MaxSamplerOffset is ignored for inputs that do not use Offset coordinate mapping mode.