You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
o3de/Gems/Atom/RHI/Code/Source/RHI.Reflect/TransientBufferDescriptor.cpp

30 lines
868 B
C++

/*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include <Atom/RHI.Reflect/TransientBufferDescriptor.h>
#include <AzCore/Utils/TypeHash.h>
namespace AZ
{
namespace RHI
{
TransientBufferDescriptor::TransientBufferDescriptor(
const AttachmentId& attachmentId,
const BufferDescriptor& bufferDescriptor)
: m_attachmentId{attachmentId}
, m_bufferDescriptor{bufferDescriptor}
{}
HashValue64 TransientBufferDescriptor::GetHash(HashValue64 seed) const
{
seed = TypeHash64(m_attachmentId.GetHash(), seed);
seed = m_bufferDescriptor.GetHash(seed);
return seed;
}
}
}