fixing better vk command buffers management

This commit is contained in:
2024-01-07 01:34:02 +01:00
parent c24d961211
commit a9cd7375f6
22 changed files with 395 additions and 161 deletions

48
src/core/UUID.h git.filemode.normal_file
View 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