Export (0) Print
Expand All

ShaderEffect.PixelShaderSamplerCallback Method (Int32)

Associates a dependency property value with a pixel shader's sampler register.

Namespace:  System.Windows.Media.Effects
Assembly:  System.Windows (in System.Windows.dll)

protected static PropertyChangedCallback PixelShaderSamplerCallback(
	int register
)

Parameters

register
Type: System.Int32
The index of the shader sampler associated with the dependency property.

Return Value

Type: System.Windows.PropertyChangedCallback
A PropertyChangedCallback delegate that associates a dependency property and the shader sampler register specified by register.

Use the PixelShaderSamplerCallback method when you register a Brush-valued dependency property for a shader sampler. The PixelShaderSamplerCallback method constructs a PropertyChangedCallback delegate that, when invoked, creates an association between the dependency property and the shader sampler register specified by register.

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft