Beatmup
|
A mixin implementing activation functions in GLSL. More...
#include <operation.h>
Protected Member Functions | |
ActivationFunctionMixin (const ActivationFunction activationFunc) | |
void | apply (StringBuilder &code, const char *inputVariable) |
Renders a GLSL code applying activation function to a specific variable and writing the result to gl_FragColor shader output variable. More... | |
Protected Attributes | |
const ActivationFunction | activationFunc |
A mixin implementing activation functions in GLSL.
The result of any operation must fit into 0..1 range to be stored as a color texture. The activation function introduces non-linear behavior in the model and determines how the computed values are mapped to the valid output range.
Definition at line 414 of file operation.h.
|
inlineprotected |
Definition at line 419 of file operation.h.
|
protected |
Renders a GLSL code applying activation function to a specific variable and writing the result to gl_FragColor shader output variable.
[in,out] | code | A GLSL source code to be appended by the activation function code |
[in] | inputVariable | Name of the variable to apply the activation function to |
Definition at line 282 of file operation.cpp.
|
protected |
Definition at line 417 of file operation.h.