Crimson Engine 1.0.0
A high-performance C++20 game engine prototype showcasing a custom ECS, Vulkan renderer, and ImGui editor.
Loading...
Searching...
No Matches
RenderSystem::pair_hash Struct Reference

Custom hash function for std::pair<Mesh*, Material*> used in batch rendering maps. More...

Public Member Functions

std::size_t operator() (const std::pair< Mesh *, Material * > &p) const
 Computes hash for pair of Mesh and Material pointers.

Detailed Description

Custom hash function for std::pair<Mesh*, Material*> used in batch rendering maps.

Member Function Documentation

◆ operator()()

std::size_t RenderSystem::pair_hash::operator() ( const std::pair< Mesh *, Material * > & p) const
inline

Computes hash for pair of Mesh and Material pointers.

Parameters
pThe pointer pair.
Returns
Combined hash value.

The documentation for this struct was generated from the following file: