Functions: minor api improvements
This commit is contained in:
parent
ee5c2f6ead
commit
404486e66c
|
@ -80,6 +80,11 @@ class MFNetworkTreeMap {
|
|||
return network_;
|
||||
}
|
||||
|
||||
fn::MFNetwork &network()
|
||||
{
|
||||
return network_;
|
||||
}
|
||||
|
||||
void add(const DSocket &dsocket, fn::MFSocket &socket)
|
||||
{
|
||||
BLI_assert(dsocket.is_input() == socket.is_input());
|
||||
|
|
|
@ -70,10 +70,11 @@
|
|||
#include "BLI_index_mask.hh"
|
||||
#include "BLI_math_base.h"
|
||||
#include "BLI_string_ref.hh"
|
||||
#include "BLI_utility_mixins.hh"
|
||||
|
||||
namespace blender::fn {
|
||||
|
||||
class CPPType {
|
||||
class CPPType : NonCopyable, NonMovable {
|
||||
public:
|
||||
using ConstructDefaultF = void (*)(void *ptr);
|
||||
using ConstructDefaultNF = void (*)(void *ptr, uint n);
|
||||
|
|
|
@ -339,6 +339,11 @@ class GVSpan : public VSpanBase<void> {
|
|||
return ref;
|
||||
}
|
||||
|
||||
static GVSpan FromSingleWithMaxSize(const CPPType &type, const void *value)
|
||||
{
|
||||
return GVSpan::FromSingle(type, value, UINT32_MAX);
|
||||
}
|
||||
|
||||
static GVSpan FromFullPointerArray(const CPPType &type, const void *const *values, uint size)
|
||||
{
|
||||
GVSpan ref;
|
||||
|
|
Loading…
Reference in New Issue