2023-08-16 00:20:26 +10:00
|
|
|
/* SPDX-FileCopyrightText: 2023 Blender Authors
|
2023-05-31 16:19:06 +02:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
2020-06-16 16:35:57 +02:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
/** \file
|
|
|
|
|
* \ingroup fn
|
|
|
|
|
*
|
2023-01-07 17:32:28 +01:00
|
|
|
* An #Context is passed along with every call to a multi-function. Right now it does nothing,
|
2020-06-25 23:13:02 +10:00
|
|
|
* but it can be used for the following purposes:
|
2020-06-16 16:35:57 +02:00
|
|
|
* - Pass debug information up and down the function call stack.
|
2020-06-25 23:13:02 +10:00
|
|
|
* - Pass reusable memory buffers to sub-functions to increase performance.
|
2020-06-16 16:35:57 +02:00
|
|
|
* - Pass cached data to called functions.
|
|
|
|
|
*/
|
|
|
|
|
|
2023-01-07 17:32:28 +01:00
|
|
|
namespace blender::fn::multi_function {
|
2020-06-16 16:35:57 +02:00
|
|
|
|
2023-01-07 17:32:28 +01:00
|
|
|
class Context;
|
2020-07-21 17:20:05 +02:00
|
|
|
|
2024-01-02 18:12:54 +01:00
|
|
|
class ContextBuilder {};
|
2020-06-16 16:35:57 +02:00
|
|
|
|
2023-01-07 17:32:28 +01:00
|
|
|
class Context {
|
2020-06-16 16:35:57 +02:00
|
|
|
public:
|
2023-03-29 16:50:54 +02:00
|
|
|
Context(ContextBuilder & /*builder*/) {}
|
2020-06-16 16:35:57 +02:00
|
|
|
};
|
|
|
|
|
|
2023-01-07 17:32:28 +01:00
|
|
|
} // namespace blender::fn::multi_function
|