3
0

PassRequest.cpp 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 <Atom/RPI.Reflect/Pass/PassRequest.h>
  9. namespace AZ
  10. {
  11. namespace RPI
  12. {
  13. void PassRequest::Reflect(AZ::ReflectContext* context)
  14. {
  15. if (auto* serializeContext = azrtti_cast<AZ::SerializeContext*>(context))
  16. {
  17. serializeContext->Class<PassRequest>()
  18. ->Version(3)
  19. ->Field("Name", &PassRequest::m_passName)
  20. ->Field("TemplateName", &PassRequest::m_templateName)
  21. ->Field("Connections", &PassRequest::m_connections)
  22. ->Field("PassData", &PassRequest::m_passData)
  23. ->Field("Enabled", &PassRequest::m_passEnabled)
  24. ->Field("ExecuteAfter", &PassRequest::m_executeAfterPasses)
  25. ->Field("ExecuteBefore", &PassRequest::m_executeBeforePasses)
  26. ->Field("ImageAttachments", &PassRequest::m_imageAttachmentOverrides)
  27. ->Field("BufferAttachments", &PassRequest::m_bufferAttachmentOverrides)
  28. ;
  29. }
  30. }
  31. void PassRequest::AddInputConnection(PassConnection inputConnection)
  32. {
  33. m_connections.push_back(inputConnection);
  34. }
  35. } // namespace RPI
  36. } // namespace AZ