IRenderEffectParameters
Description
- Derived from
- Extended by
-
ITerrainEffect
RenderEffect abstract
Base interface for classes that represent a render effect that provides a standardized set of low-level parameter slots, which may be used across different rendering APIs.
Low-level parameter slots are declared by calling the RenderEffectParameters.Declare method on the RenderEffectParameters object that is owned by a render effect. Usually, this is done in the constructor of the respective implementation class of the IRenderEffectParameters interface.
Each low-level parameter slot may be declared only once. However, declaring the same parameter multiple times (i.e. repeatedly calling the ParameterDeclare method with identical arguments) is allowed.
When writing values to low-level parameters, the slot index -1
may be passed. In this case, the respective method will return silently. This simplifies handling of low-level parameters that are available conditionally.
Public / Methods
ParameterDeclare
Declares a low-level parameter slot, which allows an implementation to verify that the given parameter information corresponds to the actual parameter declaration in the compiled shader program.
It is valid to declare the same parameter multiple times. In this case, the same slot index will be returned for each method call. Two parameters are considered to be the same if their names are equal.
- RenderException
-
If another parameter with the given name in has already been defined with a different type in and/or size opt or if a graphics subsystem error has occurred.
ParameterTexture
2 overloads
Writes a value into a low-level parameter slot.
- See also
Writes a value into a low-level parameter slot.
ParameterUsage
Returns whether the given low-level parameter slot is used by the given pass or not.