omni/connect/core/LayerAlgo.h

File members: omni/connect/core/LayerAlgo.h

// SPDX-FileCopyrightText: Copyright (c) 2023-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: LicenseRef-NvidiaProprietary
//
// NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
// property and proprietary rights in and to this material, related
// documentation and any modifications thereto. Any use, reproduction,
// disclosure or distribution of this material and related documentation
// without an express license agreement from NVIDIA CORPORATION or
// its affiliates is strictly prohibited.

#pragma once

#include "Api.h"

#include <pxr/usd/sdf/layer.h>

namespace omni::connect::core
{

OMNICONNECTCORE_API bool hasLayerAuthoringMetadata(pxr::SdfLayerHandle layer);

OMNICONNECTCORE_API void setLayerAuthoringMetadata(pxr::SdfLayerHandle layer);

OMNICONNECTCORE_API void saveLayer(pxr::SdfLayerHandle layer, const char* comment = nullptr);

OMNICONNECTCORE_API bool exportLayer(
    pxr::SdfLayerHandle layer,
    const std::string& identifier,
    const char* comment = nullptr,
    const pxr::SdfLayer::FileFormatArguments& fileFormatArgs = pxr::SdfLayer::FileFormatArguments()
);

} // namespace omni::connect::core