From 0a907657d4d525d320e0c8518f583b7210736214 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Mon, 8 Jun 2020 17:37:43 +0200 Subject: Functions: Run-time type system and index mask This adds a new `CPPType` that encapsulates information about how to handle instances of a specific data type. This is necessary for the function evaluation system, which will be used to evaluate most of the particle node trees. Furthermore, this adds an `IndexMask` class which offers a surprisingly useful abstraction over an array containing unsigned integers. It makes two assumptions about the underlying integer array: * The integers are in ascending order. * There are no duplicates. `IndexMask` will be used to "select" certain particles that will be processed in a data-oriented way. Sometimes, operations don't have to be applied to all particles, but only some, those that are in the indexed by the `IndexMask`. The two limitations imposed by an `IndexMask` allow for better performance. Reviewers: brecht Differential Revision: https://developer.blender.org/D7957 --- source/blender/functions/CMakeLists.txt | 40 +++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 source/blender/functions/CMakeLists.txt (limited to 'source/blender/functions/CMakeLists.txt') diff --git a/source/blender/functions/CMakeLists.txt b/source/blender/functions/CMakeLists.txt new file mode 100644 index 00000000000..9ce1d3ac2fe --- /dev/null +++ b/source/blender/functions/CMakeLists.txt @@ -0,0 +1,40 @@ +# ***** BEGIN GPL LICENSE BLOCK ***** +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software Foundation, +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# ***** END GPL LICENSE BLOCK ***** + +set(INC + . + ../blenlib + ../makesdna + ../../../intern/guardedalloc +) + +set(INC_SYS +) + +set(SRC + intern/cpp_types.cc + + FN_cpp_type.hh + FN_cpp_types.hh +) + +set(LIB + bf_blenlib +) + +blender_add_lib(bf_functions "${SRC}" "${INC}" "${INC_SYS}" "${LIB}") -- cgit v1.2.3