Share via


ShaderEffect.PixelShaderSamplerCallback Méthode

Définition

Associe une valeur de propriété de dépendance au registre d'échantillonneur du nuanceur de pixels.

Surcharges

PixelShaderSamplerCallback(Int32)

Associe une valeur de propriété de dépendance au registre d'échantillonneur du nuanceur de pixels.

PixelShaderSamplerCallback(Int32, SamplingMode)

Associe une valeur de propriété de dépendance au registre d'échantillonneur du nuanceur de pixels et SamplingMode.

PixelShaderSamplerCallback(Int32)

Associe une valeur de propriété de dépendance au registre d'échantillonneur du nuanceur de pixels.

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

Paramètres

samplerRegisterIndex
Int32

Index de l'échantillonneur de nuanceur associé à la propriété de dépendance.

Retours

PropertyChangedCallback

Délégué PropertyChangedCallback qui associe une propriété de dépendance et le registre d'échantillonneur de nuanceur spécifié par samplerRegisterIndex.

Remarques

Utilisez la PixelShaderSamplerCallback méthode lorsque vous inscrivez une Brushpropriété de dépendance -valued pour un échantillonneur de nuanceur. La PixelShaderSamplerCallback méthode construit un PropertyChangedCallback délégué qui, lorsqu’il est appelé, crée une association entre la propriété de dépendance et le registre de l’échantillonneur du nuanceur spécifié par samplerRegisterIndex.

Voir aussi

S’applique à

PixelShaderSamplerCallback(Int32, SamplingMode)

Associe une valeur de propriété de dépendance au registre d'échantillonneur du nuanceur de pixels et 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

Paramètres

samplerRegisterIndex
Int32

Index de l'échantillonneur de nuanceur associé à la propriété de dépendance.

samplingMode
SamplingMode

SamplingMode pour l'échantillonneur de nuanceur.

Retours

PropertyChangedCallback

Délégué PropertyChangedCallback qui associe une propriété de dépendance et le registre d'échantillonneur de nuanceur spécifié par samplerRegisterIndex.

Remarques

Utilisez la RegisterPixelShaderSamplerProperty méthode lorsque vous inscrivez une Brushpropriété de dépendance -valued pour un échantillonneur de nuanceur. La RegisterPixelShaderSamplerProperty méthode construit un PropertyChangedCallback délégué qui, lorsqu’il est appelé, crée une association entre la propriété de dépendance et le registre de l’échantillonneur du nuanceur spécifié par samplerRegisterIndex.

Voir aussi

S’applique à