/* * Copyright (c) Contributors to the Open 3D Engine Project. * For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #include #include #include #include #include namespace AZ { namespace RPI { void MaterialPropertySourceData::Reflect(ReflectContext* context) { if (JsonRegistrationContext* jsonContext = azrtti_cast(context)) { jsonContext->Serializer()->HandlesType(); jsonContext->Serializer()->HandlesType(); jsonContext->Serializer()->HandlesType(); } else if (auto* serializeContext = azrtti_cast(context)) { serializeContext->Class()->Version(3); serializeContext->Class()->Version(1); serializeContext->RegisterGenericType>(); serializeContext->RegisterGenericType>>(); serializeContext->RegisterGenericType(); } } MaterialPropertySourceData::MaterialPropertySourceData(AZStd::string_view name) : m_name(name) { } const AZStd::string& MaterialPropertySourceData::GetName() const { return m_name; } MaterialPropertySourceData::Connection::Connection(MaterialPropertyOutputType type, AZStd::string_view name) : m_type(type) , m_name(name) { } const float MaterialPropertySourceData::DefaultMin = std::numeric_limits::lowest(); const float MaterialPropertySourceData::DefaultMax = std::numeric_limits::max(); const float MaterialPropertySourceData::DefaultStep = 0.1f; } // namespace RPI } // namespace AZ