#pragma once #ifndef NAZARA_SHADERNODES_VECTOR_DECOMPOSITION_HPP #define NAZARA_SHADERNODES_VECTOR_DECOMPOSITION_HPP #include #include #include #include #include #include #include #include class VecDecomposition : public ShaderNode { public: VecDecomposition(ShaderGraph& graph); ~VecDecomposition() = default; Nz::ShaderAst::NodePtr BuildNode(Nz::ShaderAst::ExpressionPtr* expressions, std::size_t count, std::size_t outputIndex) const override; QString caption() const override; QString name() const override; QtNodes::NodeDataType dataType(QtNodes::PortType portType, QtNodes::PortIndex portIndex) const override; unsigned int nPorts(QtNodes::PortType portType) const override; QString portCaption(QtNodes::PortType portType, QtNodes::PortIndex portIndex) const override; bool portCaptionVisible(QtNodes::PortType portType, QtNodes::PortIndex portIndex) const override; std::shared_ptr outData(QtNodes::PortIndex port) override; void setInData(std::shared_ptr value, int index) override; QtNodes::NodeValidationState validationState() const override; QString validationMessage() const override; private: void UpdateOutputs(); std::shared_ptr m_input; std::array, 4> m_outputs; }; #include #endif