3
0

RenderPipelineDescriptor.cpp 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  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("DefaultAAMethod", &RenderPipelineDescriptor::m_defaultAAMethod)
  27. ->Field("AllowModification", &RenderPipelineDescriptor::m_allowModification)
  28. ;
  29. }
  30. }
  31. } // namespace RPI
  32. } // namespace AZ