ShaderEffect.PixelShaderConstantCallback(Int32) Metodo

Definizione

Associa un valore della proprietà di dipendenza al registro costante float di un pixel shader.

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

Parametri

floatRegisterIndex
Int32

Indice del registro shader associato alla proprietà di dipendenza.

Valori restituiti

Delegato PropertyChangedCallback che associa una proprietà di dipendenza e il registro costante dello shader specificato da floatRegisterIndex.

Eccezioni

La proprietà di dipendenza è un tipo sconosciuto.

floatRegisterIndex è maggiore o uguale a 32 oppure floatRegisterIndex è minore di 0.

Commenti

Usare il PixelShaderConstantCallback metodo quando si registra una proprietà di dipendenza per una costante shader. Il PixelShaderConstantCallback metodo costruisce un PropertyChangedCallback delegato che, quando richiamato, crea un'associazione tra la proprietà di dipendenza e il registro costante dello shader specificato da floatRegisterIndex.

Si applica a

Vedi anche