Düzenle

Aracılığıyla paylaş


ShaderEffect.PixelShaderSamplerCallback Method

Definition

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

Overloads

PixelShaderSamplerCallback(Int32)

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

PixelShaderSamplerCallback(Int32, SamplingMode)

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

PixelShaderSamplerCallback(Int32)

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

protected:
 static System::Windows::PropertyChangedCallback ^ PixelShaderSamplerCallback(int samplerRegisterIndex);
protected static System.Windows.PropertyChangedCallback PixelShaderSamplerCallback (int samplerRegisterIndex);
static member PixelShaderSamplerCallback : int -> System.Windows.PropertyChangedCallback
Protected Shared Function PixelShaderSamplerCallback (samplerRegisterIndex As Integer) As PropertyChangedCallback

Parameters

samplerRegisterIndex
Int32

The index of the shader sampler associated with the dependency property.

Returns

A PropertyChangedCallback delegate that associates a dependency property and the shader sampler register specified by samplerRegisterIndex.

Remarks

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 samplerRegisterIndex.

See also

Applies to

PixelShaderSamplerCallback(Int32, SamplingMode)

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

protected:
 static System::Windows::PropertyChangedCallback ^ PixelShaderSamplerCallback(int samplerRegisterIndex, System::Windows::Media::Effects::SamplingMode samplingMode);
protected static System.Windows.PropertyChangedCallback PixelShaderSamplerCallback (int samplerRegisterIndex, System.Windows.Media.Effects.SamplingMode samplingMode);
static member PixelShaderSamplerCallback : int * System.Windows.Media.Effects.SamplingMode -> System.Windows.PropertyChangedCallback
Protected Shared Function PixelShaderSamplerCallback (samplerRegisterIndex As Integer, samplingMode As SamplingMode) As PropertyChangedCallback

Parameters

samplerRegisterIndex
Int32

The index of the shader sampler associated with the dependency property.

samplingMode
SamplingMode

The SamplingMode for the shader sampler.

Returns

A PropertyChangedCallback delegate that associates a dependency property and the shader sampler register specified by samplerRegisterIndex.

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 samplerRegisterIndex.

See also

Applies to