ResolveScopeAttachmentDescriptor.cpp 1.3 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 <Atom/RHI.Reflect/ImageViewDescriptor.h>
  9. #include <Atom/RHI.Reflect/ResolveScopeAttachmentDescriptor.h>
  10. #include <AzCore/Serialization/SerializeContext.h>
  11. namespace AZ::RHI
  12. {
  13. void ResolveScopeAttachmentDescriptor::Reflect(AZ::ReflectContext* context)
  14. {
  15. if (auto* serializeContext = azrtti_cast<SerializeContext*>(context))
  16. {
  17. serializeContext->Class<ResolveScopeAttachmentDescriptor, ImageScopeAttachmentDescriptor>()
  18. ->Version(2)
  19. ->Field("ResolveAttachmentId", &ResolveScopeAttachmentDescriptor::m_resolveAttachmentId)
  20. ;
  21. }
  22. }
  23. ResolveScopeAttachmentDescriptor::ResolveScopeAttachmentDescriptor(
  24. const AttachmentId& attachmentId,
  25. const AttachmentId& resolveAttachmentId,
  26. const ImageViewDescriptor& imageViewDescriptor,
  27. const AttachmentLoadStoreAction& loadStoreAction)
  28. : ImageScopeAttachmentDescriptor(attachmentId, imageViewDescriptor, loadStoreAction)
  29. , m_resolveAttachmentId{ resolveAttachmentId }
  30. {}
  31. }