Share via


ShaderEffect.PixelShaderConstantCallback(Int32) Méthode

Définition

Associe une valeur de propriété de dépendance au registre de constante flottante d'un nuanceur de pixels.

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

Paramètres

floatRegisterIndex
Int32

Index du registre 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 de constante de nuanceur spécifié par floatRegisterIndex.

Exceptions

La propriété de dépendance est un type inconnu.

floatRegisterIndex est supérieur ou égal à 32, ou floatRegisterIndex est inférieur à 0.

Remarques

Utilisez la PixelShaderConstantCallback méthode lorsque vous inscrivez une propriété de dépendance pour une constante de nuanceur. La PixelShaderConstantCallback 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 constante du nuanceur spécifié par floatRegisterIndex.

S’applique à

Voir aussi