ScopeAttachmentDescriptor.cpp 1.0 KB

123456789101112131415161718192021222324252627282930313233
  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/RHI.Reflect/ScopeAttachmentDescriptor.h>
  10. namespace AZ::RHI
  11. {
  12. void ScopeAttachmentDescriptor::Reflect(AZ::ReflectContext* context)
  13. {
  14. if (auto* serializeContext = azrtti_cast<SerializeContext*>(context))
  15. {
  16. serializeContext->Class<ScopeAttachmentDescriptor>()
  17. ->Version(0)
  18. ->Field("AttachmentId", &ScopeAttachmentDescriptor::m_attachmentId)
  19. ->Field("LoadStoreAction", &ScopeAttachmentDescriptor::m_loadStoreAction)
  20. ;
  21. }
  22. }
  23. ScopeAttachmentDescriptor::ScopeAttachmentDescriptor(
  24. const AttachmentId& attachmentId,
  25. const AttachmentLoadStoreAction& loadStoreAction)
  26. : m_attachmentId(attachmentId)
  27. , m_loadStoreAction(loadStoreAction)
  28. {}
  29. }