| EffectBindingSetT Method (String, FuncDelegateParameterBindingT, RenderContext, T) |
Namespace: DigitalRune.Graphics.EffectsAssembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax public DelegateParameterBinding<T> Set<T>(
string name,
Func<DelegateParameterBinding<T>, RenderContext, T> computeParameter
)
Public Function Set(Of T) (
name As String,
computeParameter As Func(Of DelegateParameterBinding(Of T), RenderContext, T)
) As DelegateParameterBinding(Of T)
public:
generic<typename T>
DelegateParameterBinding<T>^ Set(
String^ name,
Func<DelegateParameterBinding<T>^, RenderContext^, T>^ computeParameter
)
member Set :
name : string *
computeParameter : Func<DelegateParameterBinding<'T>, RenderContext, 'T> -> DelegateParameterBinding<'T>
Parameters
- name
- Type: SystemString
The name of the effect parameter to which the binding is applied.
- computeParameter
- Type: SystemFuncDelegateParameterBindingT, RenderContext, T
The callback function that computes the value.
Type Parameters
- T
- The value type. See EffectParameterBindingT.
Return Value
Type:
DelegateParameterBindingTThe
DelegateParameterBindingT that has been set.
Exceptions Remarks
If an appropriate effect parameter binding for the effect parameter already exists, then the
existing binding is updated.
See Also