| 51 | }; |
| 52 | |
| 53 | VgCommand() : type{EType::Invalid} {} |
| 54 | VgCommand(EType _type, std::span<const float> _data) : type{_type}, data{_data.begin(), _data.end()} { |
| 55 | if (size() != data.size()) { |
| 56 | throw std::runtime_error{"VgCommand constructed with invalid amount of data"}; |