Go to the documentation of this file. 1 #ifndef OGLPLUS_TEXGEN_SPLIT_NODE_HPP
9 #define OGLPLUS_TEXGEN_SPLIT_NODE_HPP
15 namespace eagine::oglp::texgen {
17 class split_output :
public base_output {
19 input_with_const_default<float[4]>& _input;
25 input_with_const_default<
float[4]>& input,
26 valid_if_between<span_size_t, 0, 3> index);
32 std::ostream& definitions(std::ostream& out, compile_context& ctxt)
override;
35 class split_node :
public base_node {
37 input_with_const_default<float[4]> _input;
38 split_output _output_r;
39 split_output _output_g;
40 split_output _output_b;
41 split_output _output_a;
59 #if !OGLPLUS_LINK_LIBRARY || defined(OGLPLUS_IMPLEMENTING_LIBRARY)
60 #include <oglplus/texgen/split_node.inl>
63 #endif // OGLPLUS_TEXGEN_SPLIT_NODE_HPP
value_type
Value tree value element data type enumeration.
Definition: interface.hpp:27
std::ptrdiff_t span_size_t
Signed span size type used by eagine.
Definition: types.hpp:36
basic_string_span< const char > string_view
Alias for const string views.
Definition: string_span.hpp:116
static auto type_name(const T &) noexcept -> std::string
Returns the demangled name for type T.
Definition: type_name.hpp:24