ShaderEffect.RegisterPixelShaderSamplerProperty Method (String, Type, Int32, SamplingMode)
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Associates a dependency property with a shader sampler register and a sampling mode.
Namespace: System.Windows.Media.Effects
Assembly: System.Windows (in System.Windows.dll)
Syntax
'Declaration
Protected Shared Function RegisterPixelShaderSamplerProperty ( _
dpName As String, _
ownerType As Type, _
samplerRegisterIndex As Integer, _
samplingMode As SamplingMode _
) As DependencyProperty
protected static DependencyProperty RegisterPixelShaderSamplerProperty(
string dpName,
Type ownerType,
int samplerRegisterIndex,
SamplingMode samplingMode
)
Parameters
- dpName
Type: System.String
The name of the dependency property.
- ownerType
Type: System.Type
The type of the effect that has the dependency property.
- samplerRegisterIndex
Type: System.Int32
The index of the shader sampler associated with the dependency property.
- samplingMode
Type: System.Windows.Media.Effects.SamplingMode
One of the enumeration values that specifies the sampling mode for the shader.
Return Value
Type: System.Windows.DependencyProperty
A dependency property associated with the shader sampler specified by samplerRegisterIndex.
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.