RenderPipelineDescriptor.cpp 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #include <AzCore/Serialization/SerializeContext.h>
  9. #include <Atom/RPI.Reflect/System/RenderPipelineDescriptor.h>
  10. namespace AZ
  11. {
  12. namespace RPI
  13. {
  14. void RenderPipelineDescriptor::Reflect(AZ::ReflectContext* context)
  15. {
  16. if (auto* serializeContext = azrtti_cast<AZ::SerializeContext*>(context))
  17. {
  18. serializeContext->Class<RenderPipelineDescriptor>()
  19. ->Version(2)
  20. ->Field("Name", &RenderPipelineDescriptor::m_name)
  21. ->Field("MainViewTag", &RenderPipelineDescriptor::m_mainViewTagName)
  22. ->Field("RootPassTemplate", &RenderPipelineDescriptor::m_rootPassTemplate)
  23. ->Field("MaterialPipelineTag", &RenderPipelineDescriptor::m_materialPipelineTag)
  24. ->Field("ExecuteOnce", &RenderPipelineDescriptor::m_executeOnce)
  25. ->Field("RenderSettings", &RenderPipelineDescriptor::m_renderSettings)
  26. ->Field("AllowModification", &RenderPipelineDescriptor::m_allowModification)
  27. ;
  28. }
  29. }
  30. } // namespace RPI
  31. } // namespace AZ