You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
2.4 KiB
C++
59 lines
2.4 KiB
C++
/*
|
|
* 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 <Atom/RPI.Reflect/Shader/PrecompiledShaderAssetSourceData.h>
|
|
#include <AzCore/RTTI/ReflectContext.h>
|
|
#include <AzCore/Serialization/SerializeContext.h>
|
|
|
|
namespace AZ
|
|
{
|
|
namespace RPI
|
|
{
|
|
void PrecompiledRootShaderVariantAssetSourceData::Reflect(ReflectContext* context)
|
|
{
|
|
if (auto* serializeContext = azrtti_cast<SerializeContext*>(context))
|
|
{
|
|
serializeContext->Class<PrecompiledRootShaderVariantAssetSourceData>()
|
|
->Version(0)
|
|
->Field("APIName", &PrecompiledRootShaderVariantAssetSourceData::m_apiName)
|
|
->Field("RootShaderVariantAssetFileName", &PrecompiledRootShaderVariantAssetSourceData::m_rootShaderVariantAssetFileName)
|
|
;
|
|
}
|
|
}
|
|
|
|
void PrecompiledSupervariantSourceData::Reflect(ReflectContext* context)
|
|
{
|
|
PrecompiledRootShaderVariantAssetSourceData::Reflect(context);
|
|
|
|
if (auto* serializeContext = azrtti_cast<SerializeContext*>(context))
|
|
{
|
|
serializeContext->Class<PrecompiledSupervariantSourceData>()
|
|
->Version(0)
|
|
->Field("Name", &PrecompiledSupervariantSourceData::m_name)
|
|
->Field("RootShaderVariantAssets", &PrecompiledSupervariantSourceData::m_rootShaderVariantAssets)
|
|
;
|
|
}
|
|
}
|
|
|
|
void PrecompiledShaderAssetSourceData::Reflect(ReflectContext* context)
|
|
{
|
|
PrecompiledSupervariantSourceData::Reflect(context);
|
|
|
|
if (auto* serializeContext = azrtti_cast<SerializeContext*>(context))
|
|
{
|
|
serializeContext->Class<PrecompiledShaderAssetSourceData>()
|
|
->Version(2) // ATOM-15740
|
|
->Field("ShaderAssetFileName", &PrecompiledShaderAssetSourceData::m_shaderAssetFileName)
|
|
->Field("PlatformIdentifiers", &PrecompiledShaderAssetSourceData::m_platformIdentifiers)
|
|
->Field("Supervariants", &PrecompiledShaderAssetSourceData::m_supervariants)
|
|
;
|
|
}
|
|
}
|
|
} // namespace RPI
|
|
} // namespace AZ
|