Get equivalent pipeline code from a pipeline layout. More...
#include <LayoutLoader.hpp>
Public Member Functions | |
LayoutWriter (void) | |
LayoutWriter constructor. | |
std::string | getCode (const AbstractPipelineLayout &pipelineLayout) |
Build the human-readable code for the given AbstractPipelineLayout object. More... | |
void | writeToFile (const AbstractPipelineLayout &pipelineLayout, const std::string &filename) |
Build the human-readable code for the given AbstractPipelineLayout object and write it to a file. WARNING : it will discard all previous content. More... | |
Static Public Member Functions | |
static VanillaParserSpace::Element | write (const HdlAbstractTextureFormat &format, const std::string &name) |
Generate the code element for a particular format. More... | |
static VanillaParserSpace::Element | write (const ShaderSource &source, const std::string &name) |
Generate the code element for a particular source. More... | |
static VanillaParserSpace::Element | write (const GeometryModel &mdl, const std::string &name) |
Generate the code element for a particular geometry. More... | |
Get equivalent pipeline code from a pipeline layout.
The layout writer enables you to write a pipeline to a Pipeline Script file. Note that the uniforms values might be lost at loading. In order to avoid this problem, you have to use a UniformsLoader to store and then load the correct profile (all the uniforms values).
std::string LayoutWriter::getCode | ( | const AbstractPipelineLayout & | pipelineLayout | ) |
Build the human-readable code for the given AbstractPipelineLayout object.
pipelineLayout | The pipeline layout to convert. |
|
static |
Generate the code element for a particular format.
format | Format object. |
name | Name of the object. |
|
static |
Generate the code element for a particular source.
source | Source object. |
name | Name of the source. |
|
static |
Generate the code element for a particular geometry.
mdl | Geometry model object. |
name | Name of teh geometry. |
void LayoutWriter::writeToFile | ( | const AbstractPipelineLayout & | pipelineLayout, |
const std::string & | filename | ||
) |
Build the human-readable code for the given AbstractPipelineLayout object and write it to a file. WARNING : it will discard all previous content.
pipelineLayout | The pipeline layout to convert. |
filename | The filename to write to (Warning : discard all previous content). |