FastUIDraw
symbol_list.hpp
Go to the documentation of this file.
1 /*!
2  * \file symbol_list.hpp
3  * \brief file symbol_list.hpp
4  *
5  * Copyright 2019 by Intel.
6  *
7  * Contact: kevin.rogovin@gmail.com
8  *
9  * This Source Code Form is subject to the
10  * terms of the Mozilla Public License, v. 2.0.
11  * If a copy of the MPL was not distributed with
12  * this file, You can obtain one at
13  * http://mozilla.org/MPL/2.0/.
14  *
15  * \author Kevin Rogovin <kevin.rogovin@gmail.com>
16  *
17  */
18 
19 
20 #ifndef FASTUIDRAW_SYMBOL_LIST_HPP
21 #define FASTUIDRAW_SYMBOL_LIST_HPP
22 
25 
26 namespace fastuidraw
27 {
28  namespace glsl
29  {
30 /*!\addtogroup GLSL
31  * @{
32  */
33 
34  /*!
35  * \brief
36  * A \ref symbol_list embodies a \ref varying_list along with a set
37  * of shareable values for the vertex and fragment shaders.
38  */
40  {
41  public:
42  /*!
43  * Ctor.
44  * \param varyings value with which to initialize \ref m_varying_list
45  * \param vert_sharables value with which to initialize \ref m_vert_shareable_values
46  * \param frag_sharables value with which to initialize \ref m_frag_shareable_values
47  */
48  symbol_list(const varying_list &varyings = varying_list(),
49  const shareable_value_list &vert_sharables = shareable_value_list(),
50  const shareable_value_list &frag_sharables = shareable_value_list()):
51  m_varying_list(varyings),
52  m_vert_shareable_values(vert_sharables),
53  m_frag_shareable_values(frag_sharables)
54  {}
55 
56  /*!
57  * Varyings of a from the vertex shader to the fragment shader
58  */
60 
61  /*!
62  * List of shareable values to callers of vertex shader
63  */
65 
66  /*!
67  * List of shareable values to callers of fragment shader
68  */
70  };
71 
72 /*! @} */
73  }
74 }
75 
76 #endif
file varying_list.hpp
A shareable_value_list is a list of values and their types that a shader will have computed after run...
A varying_list lists all the in&#39;s of a frag shader (and their names) which is the same as the out&#39;s o...
all classes and functions of FastUIDraw are in the namespace fastuidraw.
Definition: colorstop.hpp:28
shareable_value_list m_vert_shareable_values
Definition: symbol_list.hpp:64
shareable_value_list m_frag_shareable_values
Definition: symbol_list.hpp:69
A symbol_list embodies a varying_list along with a set of shareable values for the vertex and fragmen...
Definition: symbol_list.hpp:39
symbol_list(const varying_list &varyings=varying_list(), const shareable_value_list &vert_sharables=shareable_value_list(), const shareable_value_list &frag_sharables=shareable_value_list())
Definition: symbol_list.hpp:48
file shareable_value_list.hpp