Прочетете на английски Редактиране

Споделяне чрез


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.

C#
protected static System.Windows.PropertyChangedCallback PixelShaderSamplerCallback(int samplerRegisterIndex);

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

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

PixelShaderSamplerCallback(Int32, SamplingMode)

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

C#
protected static System.Windows.PropertyChangedCallback PixelShaderSamplerCallback(int samplerRegisterIndex, System.Windows.Media.Effects.SamplingMode samplingMode);

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

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10