// Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved.
//
// NVIDIA CORPORATION and its licensors retain all intellectual property
// and proprietary rights in and to this software, related documentation
// and any modifications thereto.  Any use, reproduction, disclosure or
// distribution of this software and related documentation without an express
// license agreement from NVIDIA CORPORATION is strictly prohibited.
//

// clang-format off
#include "UsdPCH.h"
// clang-format on

#include <OgnGetGraphTargetPrimDatabase.h>

namespace omni
{
namespace graph
{
namespace nodes
{

class OgnGetGraphTargetPrim
{
public:
    static size_t computeVectorized(OgnGetGraphTargetPrimDatabase& db, size_t count)
    {
        auto targets = db.getGraphTargets(count);
        for (size_t idx = 0; idx < count; idx++)
        {
            auto outPrims = db.outputs.prim(idx);
            outPrims.resize(1);
            outPrims[0] = db.tokenToPath(targets[idx]);
        }
        return count;
    }
};

REGISTER_OGN_NODE()
}
}
}
