ShaderEffect.PixelShaderConstantCallback Method
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Associates a dependency property value with a pixel shader's float constant register.
Namespace: System.Windows.Media.Effects
Assembly: System.Windows (in System.Windows.dll)
Syntax
'Declaration
Protected Shared Function PixelShaderConstantCallback ( _
register As Integer _
) As PropertyChangedCallback
protected static PropertyChangedCallback PixelShaderConstantCallback(
int register
)
Parameters
- register
Type: System.Int32
The index of the shader register associated with the dependency property.
Return Value
Type: System.Windows.PropertyChangedCallback
A PropertyChangedCallback delegate that associates a dependency property and the shader constant register specified by register.
Remarks
Use the PixelShaderConstantCallback method when you register a dependency property for a shader constant. The PixelShaderConstantCallback method constructs a PropertyChangedCallback delegate that, when invoked, creates an association between the dependency property and the shader constant 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.