omni/avreality/rain/IPuddleBaker.h

File members: omni/avreality/rain/IPuddleBaker.h

// Copyright (c) 2023, 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.
//

#pragma once

#include <carb/Interface.h>
#include <carb/Types.h>

#include <gsl/span>

#include <cstdint>
#include <tuple>

namespace omni::avreality::rain
{

struct IPuddleBaker
{
    CARB_PLUGIN_INTERFACE("omni::avreality::rain::IPuddleBaker", 1, 0)

    void(CARB_ABI* bake)(const char* const textureName,
                         carb::Uint2 textureDims,
                         carb::Float2 regionMin,
                         carb::Float2 regionMax,
                         std::size_t puddleCount,
                         const carb::Float2* puddlesPositions,
                         const float* puddlesRadii,
                         const float* puddlesDepths);

    void(CARB_ABI* assignShadersAccumulationMapTextureNames)(
        gsl::span<std::tuple<const char* const, const char* const>> shaderPathsAndTextureNames,
        const char* const usdContextName);
};

} // namespace omni::avreality::rain