VPP  0.7
A high-level modern C++ API for Vulkan
vppLangAggregates.hpp
1 /*
2  Copyright 2016-2018 SOFT-ERG, Przemek Kuczmierczyk (www.softerg.com)
3  All rights reserved.
4 
5  Redistribution and use in source and binary forms, with or without modification,
6  are permitted provided that the following conditions are met:
7 
8  1. Redistributions of source code must retain the above copyright notice,
9  this list of conditions and the following disclaimer.
10 
11  2. Redistributions in binary form must reproduce the above copyright notice,
12  this list of conditions and the following disclaimer in the documentation
13  and/or other materials provided with the distribution.
14 
15  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
16  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
17  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18  ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
19  FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20  (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
22  ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
23  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
24  EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */
26 
27 // -----------------------------------------------------------------------------
28 namespace vpp {
29 // -----------------------------------------------------------------------------
30 
42 enum ETag
43 {
45  CPU,
46 
48  GPU,
49 
52 };
53 
54 // -----------------------------------------------------------------------------
94 template< class DefinitionT >
96 {
97 };
98 
99 // -----------------------------------------------------------------------------
121 template< class FieldT, std::uint32_t FLAGS = 0 >
122 class Field
123 {
124 public:
125 };
126 
127 // -----------------------------------------------------------------------------
133 template< class ItemT, int SIZE >
134 class VArray
135 {
136 public:
137  VArray();
138 
139  template< typename IndexT >
140  inline auto operator[]( IndexT index ) const;
141 
142  inline Int Size() const;
143  inline int size() const;
144 };
145 
146 // -----------------------------------------------------------------------------
147 
152 template< class ItemT, int COLS, int ROWS >
154 
158 template< class ItemT, int LAYERS, int COLS, int ROWS >
160 
161 // -----------------------------------------------------------------------------
162 } // namespace vpp
163 // -----------------------------------------------------------------------------
Selects CPU version of the structure.
Definition: vppLangAggregates.hpp:45
Declares mutable shader variable of array type.
Definition: vppLangAggregates.hpp:134
The VPP namespace.
Definition: main.hpp:1
ETag
Enumeration type allowing to select the flavor of shader structural type: the CPU or GPU version...
Definition: vppLangAggregates.hpp:42
Internal use only.
Definition: vppLangAggregates.hpp:51
Shader (GPU-side) data type for 32-bit signed integer values.
Definition: vppLangScalarTypes.hpp:167
Template for defining local structure data fields.
Definition: vppLangAggregates.hpp:122
Base class for local data structures.
Definition: vppLangAggregates.hpp:95
Selects GPU version of the structure.
Definition: vppLangAggregates.hpp:48