Function gpa::shader_utilities::CreateUnrolledOutputsGLSL

Function Documentation

void gpa::shader_utilities::CreateUnrolledOutputsGLSL(std::string const &outputValueTypeStr, std::string const &ouptutValueComponentTypeStr, uint32_t outputValueComponentCount, std::string const &outputValueName, std::string const &currentStr, api_types::Color const &color, size_t arraySizesCount, uint32_t *pArraySizes, std::stringstream &strStr)

Creates GLSL source code for unrolling and populating arrays of fragmeent shader outputs.

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

  • outputValueName -- The name of the output value

  • currentStr -- (detail)

  • color -- The Color<float> to write to the ouptut value in the created GLSL source code

  • arraySizesCount -- The number of array sizes to unroll

  • pArraySizes -- A pointer to the array sizes to unroll

  • strStr -- (out) The std::stringstream to write the GLSL source code to