mirror of
https://github.com/seekrs/MacroLibX.git
synced 2026-01-12 15:13:34 +00:00
fixing better vk command buffers management
This commit is contained in:
48
src/core/UUID.h
git.filemode.normal_file
48
src/core/UUID.h
git.filemode.normal_file
@@ -0,0 +1,48 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* UUID.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/01/06 11:13:23 by maldavid #+# #+# */
|
||||
/* Updated: 2024/01/06 11:29:34 by maldavid ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef __MLX_UUID__
|
||||
#define __MLX_UUID__
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
namespace mlx
|
||||
{
|
||||
class UUID
|
||||
{
|
||||
public:
|
||||
UUID();
|
||||
UUID(uint64_t uuid);
|
||||
|
||||
inline operator uint64_t() const { return _uuid; }
|
||||
|
||||
private:
|
||||
uint64_t _uuid;
|
||||
};
|
||||
}
|
||||
|
||||
namespace std
|
||||
{
|
||||
template <typename T> struct hash;
|
||||
|
||||
template<>
|
||||
struct hash<mlx::UUID>
|
||||
{
|
||||
std::size_t operator()(const mlx::UUID& uuid) const
|
||||
{
|
||||
return static_cast<uint64_t>(uuid);
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user