Click or drag to resize
PixelShaderEffectMaxSamplerOffset Property
Describes the maximum offset the shader will add to or subtract from a texture coordinate when sampling from an input that uses Offset coordinate mapping mode.

Namespace:  Microsoft.Graphics.Canvas.Effects
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public int MaxSamplerOffset { get; set; }

Property Value

Type: Int32
Remarks

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.

See Also