| EffectBindingSetT Method (String, ActionDelegateParameterArrayBindingT, RenderContext, T) |
Namespace: DigitalRune.Graphics.EffectsAssembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax public DelegateParameterArrayBinding<T> Set<T>(
string name,
Action<DelegateParameterArrayBinding<T>, RenderContext, T[]> computeParameter
)
Public Function Set(Of T) (
name As String,
computeParameter As Action(Of DelegateParameterArrayBinding(Of T), RenderContext, T())
) As DelegateParameterArrayBinding(Of T)
public:
generic<typename T>
DelegateParameterArrayBinding<T>^ Set(
String^ name,
Action<DelegateParameterArrayBinding<T>^, RenderContext^, array<T>^>^ computeParameter
)
member Set :
name : string *
computeParameter : Action<DelegateParameterArrayBinding<'T>, RenderContext, 'T[]> -> DelegateParameterArrayBinding<'T>
Parameters
- name
- Type: SystemString
The name of the effect parameter to which the binding is applied.
- computeParameter
- Type: SystemActionDelegateParameterArrayBindingT, RenderContext, T
The callback function that computes the parameter values.
Type Parameters
- T
-
The value type. See EffectParameterArrayBindingT.
Return Value
Type:
DelegateParameterArrayBindingTThe
DelegateParameterArrayBindingT 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