|
enum class | SubIdDisplayType { Hex
, Decimal
} |
|
using | FixedString = AZStd::fixed_string< MaxStringBuffer > |
| UUid size (includes terminal) + ":" + hex, subId.
|
|
|
| AZ_TYPE_INFO (AssetId, "{652ED536-3402-439B-AEBE-4A5DBC554085}") |
|
| AssetId () |
| Create asset id in invalid state.
|
|
| AssetId (AZStd::string_view guidString, u32 subId=0) |
|
| AssetId (const Uuid &guid, u32 subId=0) |
|
bool | IsValid () const |
|
void | SetInvalid () |
|
bool | operator== (const AssetId &rhs) const |
|
bool | operator!= (const AssetId &rhs) const |
|
bool | operator< (const AssetId &rhs) const |
|
template<class StringType > |
StringType | ToString (SubIdDisplayType displayType=SubIdDisplayType::Hex) const |
|
template<class StringType > |
void | ToString (StringType &result, SubIdDisplayType displayType=SubIdDisplayType::Hex) const |
|
FixedString | ToFixedString () const |
|
|
Uuid | m_guid |
|
u32 | m_subId |
| To allow easier and more consistent asset guid, we can provide asset sub ID. (i.e. Guid is a cubemap texture, subId is the index of the side)
|
|
u8 | m_padBytes [s_maxMemberAlignment -(s_lastMemberSize % s_maxMemberAlignment)] {} |
|
|
static constexpr size_t | MaxStringBuffer = AZ::Uuid::MaxStringBuffer + 9 |
|
static constexpr size_t | s_maxMemberAlignment = alignof(decltype(m_guid)) |
|
static constexpr size_t | s_lastMemberSize = sizeof(decltype(m_subId)) |
|
◆ AssetId()
AZ::Data::AssetId::AssetId |
( |
| ) |
|
|
inline |
Create asset id in invalid state.
Implementations AssetID
The documentation for this struct was generated from the following file:
- Code/Framework/AzCore/AzCore/Asset/AssetCommon.h