Fixed bugs in basalt memory tag name generation. Centralised alignment values to basalt::mem::get_memory_tag_alignment_bytes.

This commit is contained in:
2025-06-22 14:58:20 +10:00
parent b5ef8e4ab5
commit bff17a13b6
2 changed files with 41 additions and 20 deletions

View File

@@ -74,7 +74,8 @@ namespace basalt
char* get_memory_usage_string(void);
i64 get_memory_tag_class_name(MEMORY_TAG memory_class, char* out_buf, u64 out_buf_size);
i64 get_memory_tag_zone_name(MEMORY_TAG zone_class, char* out_buf, u64 out_buf_size);
i64 get_memory_tag_zone_name(MEMORY_TAG memory_zone, char* out_buf, u64 out_buf_size);
i64 get_memory_tag_alignment_bytes(MEMORY_TAG memory_alignment);
template<typename T>
T* allocT(u64 num_elements, MEMORY_TAG tag)