Tatooine
Static Public Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
tatooine::gl::shaderstageparser Class Reference

#include <shaderstageparser.h>

Collaboration diagram for tatooine::gl::shaderstageparser:
[legend]

Static Public Member Functions

static DLL_API auto parse (std::filesystem::path const &path, std::vector< GLSLVar > &vars, include_tree &it) -> shadersource
 
static DLL_API auto parse (shadersource const &source, std::vector< GLSLVar > &vars, include_tree &it) -> shadersource
 
static DLL_API auto parse_varname (std::string const &line) -> std::optional< GLSLVar >
 
static DLL_API auto parse_include (std::string const &line) -> std::optional< std::string >
 

Static Private Member Functions

template<typename Stream >
static auto parse_stream (Stream &stream, std::vector< GLSLVar > &vars, include_tree &it, std::string const &folder="") -> shadersource
 

Static Private Attributes

static std::regex const regex_var
 
static std::regex const regex_include
 

Member Function Documentation

◆ parse() [1/2]

static DLL_API auto tatooine::gl::shaderstageparser::parse ( shadersource const &  source,
std::vector< GLSLVar > &  vars,
include_tree it 
) -> shadersource
static

◆ parse() [2/2]

static DLL_API auto tatooine::gl::shaderstageparser::parse ( std::filesystem::path const &  path,
std::vector< GLSLVar > &  vars,
include_tree it 
) -> shadersource
static

◆ parse_include()

static DLL_API auto tatooine::gl::shaderstageparser::parse_include ( std::string const &  line) -> std::optional< std::string >
static

◆ parse_stream()

template<typename Stream >
static auto tatooine::gl::shaderstageparser::parse_stream ( Stream &  stream,
std::vector< GLSLVar > &  vars,
include_tree it,
std::string const &  folder = "" 
) -> shadersource
inlinestaticprivate

◆ parse_varname()

static DLL_API auto tatooine::gl::shaderstageparser::parse_varname ( std::string const &  line) -> std::optional< GLSLVar >
static

Member Data Documentation

◆ regex_include

std::regex const tatooine::gl::shaderstageparser::regex_include
staticprivate

◆ regex_var

std::regex const tatooine::gl::shaderstageparser::regex_var
staticprivate

The documentation for this class was generated from the following file: