11 std::shared_ptr<material> material_ptr,
13 uint32_t submesh_index)
14 : mesh_ptr(
std::move(mesh_ptr))
15 , material_ptr(
std::move(material_ptr))
16 , lod_index(lod_index)
17 , submesh_index(submesh_index)
24 uint32_t submesh_index)
25 : mesh_ptr(mesh_handle.get())
26 , material_ptr(material_handle.get())
27 , lod_index(lod_index)
28 , submesh_index(submesh_index)
51 std::ostringstream oss;
53 oss <<
"mesh=" <<
static_cast<const void*
>(
mesh_ptr.get());
54 oss <<
", material=" <<
static_cast<const void*
>(
material_ptr.get());
Hash specialization for batch_key to enable use in std::unordered_map.
void hash_combine(std::size_t &seed, const T &v)
Represents a handle to an asset, providing access and management functions.
batch_key()=default
Default constructor.
auto hash() const noexcept -> size_t
Generate hash value for this batch key.
auto to_string() const -> std::string
Convert batch key to string for debugging.
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.