ShaderEffect::PixelShaderSamplerCallback Method (Int32, SamplingMode)
.NET Framework (current version)
Associates a dependency property value with a pixel shader's sampler register and a SamplingMode.
Assembly: PresentationCore (in PresentationCore.dll)
protected: static PropertyChangedCallback^ PixelShaderSamplerCallback( int samplerRegisterIndex, SamplingMode samplingMode )
Parameters
- samplerRegisterIndex
-
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 samplerRegisterIndex.
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 samplerRegisterIndex.
.NET Framework
Available since 3.0
Silverlight
Available since 3.0
Available since 3.0
Silverlight
Available since 3.0
Show: