TransientBufferDescriptor.cpp 795 B

1234567891011121314151617181920212223242526
  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/TransientBufferDescriptor.h>
  9. #include <AzCore/Utils/TypeHash.h>
  10. namespace AZ::RHI
  11. {
  12. TransientBufferDescriptor::TransientBufferDescriptor(
  13. const AttachmentId& attachmentId,
  14. const BufferDescriptor& bufferDescriptor)
  15. : m_attachmentId{attachmentId}
  16. , m_bufferDescriptor{bufferDescriptor}
  17. {}
  18. HashValue64 TransientBufferDescriptor::GetHash(HashValue64 seed) const
  19. {
  20. seed = TypeHash64(m_attachmentId.GetHash(), seed);
  21. seed = m_bufferDescriptor.GetHash(seed);
  22. return seed;
  23. }
  24. }