ShaderEffect.PixelShaderSamplerCallback Method (Int32, SamplingMode)
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Associates a dependency property value with a pixel shader's sampler register and a SamplingMode.
Namespace: System.Windows.Media.Effects
Assembly: System.Windows (in System.Windows.dll)
Syntax
'Declaration
Protected Shared Function PixelShaderSamplerCallback ( _
register As Integer, _
samplingMode As SamplingMode _
) As PropertyChangedCallback
protected static PropertyChangedCallback PixelShaderSamplerCallback(
int register,
SamplingMode samplingMode
)
Parameters
- register
Type: System.Int32
The index of the shader sampler associated with the dependency property.
- samplingMode
Type: System.Windows.Media.Effects.SamplingMode
The SamplingMode for the shader sampler.
Return Value
Type: System.Windows.PropertyChangedCallback
A PropertyChangedCallback delegate that associates a dependency property and the shader sampler register specified by register.
Remarks
Use the RegisterPixelShaderSamplerProperty method when you register a Brush-valued dependency property for a shader sampler. The RegisterPixelShaderSamplerProperty method constructs a PropertyChangedCallback delegate that, when invoked, creates an association between the dependency property and the shader sampler register specified by register.
Version Information
Silverlight
Supported in: 5, 4, 3
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.