Function gpa::shader_utilities::ColorToOutputGLSL
Defined in File shader-utilities.h
Function Documentation
-
std::string gpa::shader_utilities::ColorToOutputGLSL(std::string const &outputValueTypeStr, std::string const &ouptutValueComponentTypeStr, uint32_t outputValueComponentCount, api_types::Color const &color)
Creates GLSL source code for setting a fragment shader output a given type to a given color.
- Parameters
outputValueTypeStr -- The std::string representation of the GLSL type of the ouptut value
ouptutValueComponentTypeStr -- The std::string representation of the GLSL type of a single component of the output value
outputValueComponentCount -- The number of components of the GLSL type of the output value
color -- The Color<float> to write to the ouptut value in the created GLSL source code