Blender V5.3
blender::nodes::GField::TrivialInlineConstant Struct Reference

#include <FN_field.hh>

Static Public Member Functions

Inline Methods
static bool cpp_type_supported (const CPPType &type)

Public Attributes

const CPPType * type = nullptr
AlignedBuffer< inline_size, inline_alignment > value

Static Public Attributes

static constexpr int64_t inline_size = 16
static constexpr int64_t inline_alignment = 8
template<typename T>
static constexpr bool type_supported_v

Detailed Description

Allows storing constants inside of GField without any additional memory allocation.

Definition at line 83 of file FN_field.hh.

Member Function Documentation

◆ cpp_type_supported()

Definition at line 466 of file FN_field.hh.

Member Data Documentation

◆ inline_alignment

◆ inline_size

Definition at line 84 of file FN_field.hh.

◆ type

◆ type_supported_v

template<typename T>
bool blender::fn::GField::TrivialInlineConstant::type_supported_v
staticconstexpr
Initial value:
= std::is_trivially_destructible_v<T> &&
std::is_trivially_copyable_v<T> &&
sizeof(T) <= inline_size &&
alignof(T) <= inline_alignment
#define T
static constexpr int64_t inline_alignment
Definition FN_field.hh:85
static constexpr int64_t inline_size
Definition FN_field.hh:84

Definition at line 88 of file FN_field.hh.

◆ value


The documentation for this struct was generated from the following file: