diff options
Diffstat (limited to 'source/blender/nodes/NOD_socket_declarations.hh')
-rw-r--r-- | source/blender/nodes/NOD_socket_declarations.hh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/source/blender/nodes/NOD_socket_declarations.hh b/source/blender/nodes/NOD_socket_declarations.hh index 3f7f9e0414e..6eac77b1d6b 100644 --- a/source/blender/nodes/NOD_socket_declarations.hh +++ b/source/blender/nodes/NOD_socket_declarations.hh @@ -330,3 +330,24 @@ inline Texture::Texture() : IDSocketDeclaration("NodeSocketTexture") } } // namespace blender::nodes::decl + +/* -------------------------------------------------------------------- + * Extern template instantiations that are defined in `intern/extern_implementations.cc`. + */ + +namespace blender::nodes { +#define MAKE_EXTERN_SOCKET_DECLARATION(TYPE) \ + extern template class SocketDeclarationBuilder<TYPE>; \ + extern template TYPE::Builder &NodeDeclarationBuilder::add_input<TYPE>(StringRef, StringRef); \ + extern template TYPE::Builder &NodeDeclarationBuilder::add_output<TYPE>(StringRef, StringRef); + +MAKE_EXTERN_SOCKET_DECLARATION(decl::Float) +MAKE_EXTERN_SOCKET_DECLARATION(decl::Int) +MAKE_EXTERN_SOCKET_DECLARATION(decl::Vector) +MAKE_EXTERN_SOCKET_DECLARATION(decl::Bool) +MAKE_EXTERN_SOCKET_DECLARATION(decl::Color) +MAKE_EXTERN_SOCKET_DECLARATION(decl::String) +MAKE_EXTERN_SOCKET_DECLARATION(decl::Geometry) + +#undef MAKE_EXTERN_SOCKET_DECLARATION +} // namespace blender::nodes |