82 auto hash() const noexcept ->
size_t;
94 auto to_string() const ->
std::
string;
Hash specialization for batch_key to enable use in std::unordered_map.
Represents a handle to an asset, providing access and management functions.
auto operator()(const unravel::batch_key &key) const noexcept -> size_t
Batch key structure for grouping compatible draw calls.
batch_key()=default
Default constructor.
auto hash() const noexcept -> size_t
Generate hash value for this batch key.
auto operator<=>(const batch_key &other) const =default
Three-way comparison operator for sorting and equality.
auto is_valid() const -> bool
Check if this batch key is valid.
std::shared_ptr< material > material_ptr
Shared pointer to the material.
uint32_t lod_index
Level of detail index.
std::shared_ptr< mesh > mesh_ptr
Shared pointer to the mesh geometry.
uint32_t submesh_index
Submesh index within the mesh.
auto operator==(const batch_key &other) const -> bool=default
Equality comparison operator.