Public Types | |
| enum class | SubIdDisplayType { Hex , Decimal } |
| using | FixedString = AZStd::fixed_string< MaxStringBuffer > |
| UUid size (includes terminal) + ":" + hex, subId. | |
Public Member Functions | |
| 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 |
Static Public Member Functions | |
| static AssetId | CreateString (AZStd::string_view input) |
| static void | Reflect (ReflectContext *context) |
Public Attributes | |
| 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 Public Attributes | |
| 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)) |
|
inline |
Create asset id in invalid state.
Implementations AssetID