#pragma once #include "../utils/common.h" #include "../msl_infer/Sampler.h" #include "../msl_infer/Encoder.h" #include "../msl_infer/Renderer.h" #include "../msl_infer/Msl.h" class InferPipeline { public: InferPipeline(sptr net, uint nRays, uint nSamplesPerRay, glm::vec2 depthRange, int encodeDim, int coordChns); void run(sptr> o_colors, sptr> rays, glm::vec3 origin, bool showPerf = false); private: uint _nRays; uint _nSamplesPerRay; uint _coordChns; sptr _net; sptr _sampler; sptr _encoder; sptr _renderer; sptr> _coords; sptr> _depths; sptr> _encoded; sptr> _layeredColors; };