mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Use short ptr in VarArray.
This commit is contained in:
@@ -7,8 +7,9 @@
|
||||
#include "../common/TracyForceInline.hpp"
|
||||
#include "tracy_flat_hash_map.hpp"
|
||||
#include "TracyCharUtil.hpp"
|
||||
#include "TracyMemory.hpp"
|
||||
#include "TracyEvent.hpp"
|
||||
#include "TracyMemory.hpp"
|
||||
#include "TracyShortPtr.hpp"
|
||||
|
||||
namespace tracy
|
||||
{
|
||||
@@ -51,10 +52,13 @@ private:
|
||||
|
||||
uint8_t m_size;
|
||||
uint32_t m_hash;
|
||||
const T* m_ptr;
|
||||
const short_ptr<T> m_ptr;
|
||||
};
|
||||
#pragma pack()
|
||||
|
||||
enum { VarArraySize = sizeof( VarArray<int> ) };
|
||||
|
||||
|
||||
template<typename T>
|
||||
inline void VarArray<T>::CalcHash()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user