SpiecsEngine
 
Loading...
Searching...
No Matches
VulkanImage_test.h
Go to the documentation of this file.
1/**
2* @file VulkanImage_test.h.
3* @brief The VulkanImage_test Definitions.
4* @author Spices.
5*/
6
7#pragma once
8#include <gmock/gmock.h>
9#include <Render/Vulkan/VulkanImage.h>
10#include "RenderAPI/Vulkan/VulkanRenderBackend_test.h"
11
12#include <memory>
13
14namespace SpicesTest {
15
16 /**
17 * @brief Unit Test for VulkanImage.
18 */
20 {
21 protected:
22
23 /**
24 * @brief The interface is inherited from testing::Test.
25 * Registry on Initialize.
26 */
27 virtual void SetUp() override {
29
30 m_VulkanImage = std::make_unique<Spices::VulkanImage>(
31 m_RenderBackend->GetState(),
32 "TestImage",
33 VK_IMAGE_TYPE_2D,
34 m_TextureSize,
35 m_TextureSize,
36 1,
37 VK_SAMPLE_COUNT_1_BIT,
38 VK_FORMAT_R32G32B32A32_SFLOAT,
39 VK_IMAGE_TILING_OPTIMAL,
40 VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | // Can be used for ColorAttachment.
41 VK_IMAGE_USAGE_SAMPLED_BIT | // Can be used for ShaderRead.
42 VK_IMAGE_USAGE_INPUT_ATTACHMENT_BIT | // Can be used for InputAttachment.
43 VK_IMAGE_USAGE_TRANSFER_SRC_BIT | // Can be used for TransferSrc.
44 VK_IMAGE_USAGE_TRANSFER_DST_BIT, // Can be used for TransferDst.
45 0,
46 VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT,
47 1
48 );
49 }
50
51 /**
52 * @brief The interface is inherited from testing::Test.
53 * Registry on ShutDown.
54 */
55 virtual void TearDown() override {
56 m_VulkanImage = nullptr;
58 }
59
60 protected:
61
62 /**
63 * @brief Texture's width and height
64 */
65 const static int m_TextureSize = 100;
66
67 /**
68 * @brief The unique pointer of VulkanImage.
69 */
71 };
72
73 /**
74 * @brief Testing VulkanImage Initialize.
75 */
77
78 EXPECT_NE(m_VulkanImage, nullptr); /* @see Spices::VulkanImage. */
79 }
80
81 /**
82 * @brief Testing VulkanImage TransferDataWithVkBuffer.
83 */
85
86 /**
87 * @brief Init with ArrayData.
88 */
89 std::array<float, m_TextureSize* m_TextureSize * 4> dataArray;
90 for (int i = 0; i < m_TextureSize * m_TextureSize * 4; i++)
91 {
92 dataArray[i] = i + 0.0f;
93 }
94
95 /**
96 * @brief Instance a staginBuffer for transfer data from array to image.
97 */
98 Spices::VulkanBuffer stagingBuffer(
99 m_RenderBackend->GetState(),
100 "StagingBuffer",
101 sizeof(dataArray),
102 VK_BUFFER_USAGE_TRANSFER_SRC_BIT,
103 VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT |
104 VK_MEMORY_PROPERTY_HOST_COHERENT_BIT
105 );
106
107 /**
108 * @brief Copy the data from array to staginBuffer.
109 */
110 stagingBuffer.WriteToBuffer(dataArray.data());
111
112 /**
113 * @brief Transform Image Layout from origin to Transfer_dst.
114 */
115 m_VulkanImage->TransitionImageLayout(VK_FORMAT_R32G32B32A32_SFLOAT, VK_IMAGE_LAYOUT_UNDEFINED, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL);
116
117 /**
118 * @brief Copy the data from staginBuffer to Image.
119 */
120 m_VulkanImage->CopyBufferToImage(stagingBuffer.Get(), m_VulkanImage->GetImage(), static_cast<uint32_t>(m_TextureSize), static_cast<uint32_t>(m_TextureSize));
121
122 /**
123 * @brief Iter all texel and test is get the data correct.
124 */
125 for (int i = 0; i < m_TextureSize; i++)
126 {
127 for (int j = 0; j < m_TextureSize; j++)
128 {
129 /**
130 * @brief Copy the data from Image to array.
131 */
132 std::array<float, 4> outDta;
133 m_VulkanImage->CopyImageTexelToBuffer(i, j, reinterpret_cast<void*>(outDta.data()));
134
135 EXPECT_EQ(outDta[0], 4.0f * m_TextureSize * j + 4.0f * i + 0.0f);
136 EXPECT_EQ(outDta[1], 4.0f * m_TextureSize * j + 4.0f * i + 1.0f);
137 EXPECT_EQ(outDta[2], 4.0f * m_TextureSize * j + 4.0f * i + 2.0f);
138 EXPECT_EQ(outDta[3], 4.0f * m_TextureSize * j + 4.0f * i + 3.0f);
139 }
140 }
141 }
142}
#define UPROPERTYS(...)
#define UCONSTRUCT(T, N)
#define UPROPERTY(N)
#define UFUNCTION(N)
#define UFUNCTION_T(T, N)
#define END_CLASS
#define UFUNCTIONS(...)
#define UDECONSTRUCT(T, N)
#define UPROPERTY_S(N)
#define UCLASS()
Definition ClassTraits.h:31
#define CLASS_SCOPE
#define DELEGATE_ONE_PARAM(name, p0)
Use this macro to instance a Delegate Class. One Parameter Specific.
#define DELEGATE_THREE_PARAM(name, p0, p1, p2)
Use this macro to instance a Delegate Class. Three Parameter Specific.
#define DELEGATE_SIX_PARAM(name, p0, p1, p2, p3, p4, p5)
Use this macro to instance a Delegate Class. Six Parameter Specific.
#define DELEGATE_FIVE_PARAM(name, p0, p1, p2, p3, p4)
Use this macro to instance a Delegate Class. Five Parameter Specific.
#define DELEGATE_NONE_PARAM(name)
Use this macro to instance a Delegate Class. None Parameter Specific.
#define DELEGATE_SEVEN_PARAM(name, p0, p1, p2, p3, p4, p5, p6)
Use this macro to instance a Delegate Class. Seven Parameter Specific.
#define DELEGATE_EIGHT_PARAM(name, p0, p1, p2, p3, p4, p5, p6, p7)
Use this macro to instance a Delegate Class. Eight Parameter Specific.
#define DELEGATE_TWO_PARAM(name, p0, p1)
Use this macro to instance a Delegate Class. Two Parameter Specific.
#define DELEGATE_FOUR_PARAM(name, p0, p1, p2, p3)
Use this macro to instance a Delegate Class. Four Parameter Specific.
#define DELEGATE_NINE_PARAM(name, p0, p1, p2, p3, p4, p5, p6, p7, p8)
Use this macro to instance a Delegate Class. Nine Parameter Specific.
#define SPICES_FUNC_SIG
#define SPICESTEST_PROFILE_SCOPE_LINE2(name, line)
#define SPICESTEST_PROFILE_SCOPE(name)
#define SPICES_PROFILE
#define SPICESTEST_PROFILE_END_SESSION()
#define SPICESTEST_PROFILE_BEGIN_SESSION(name, filepath)
#define SPICESTEST_PROFILE_SCOPE_LINE(name, line)
#define SPICESTEST_PROFILE_FUNCTION()
#define SCOPE_TIME_COUNTER(...)
Definition ScopeTimer.h:49
#define SPICES_PROFILE_ZONE
static void StartServer(const Spices::Net::InetAddress &address)
Create Server.
Definition Buffer_test.h:23
static void StartClient(Spices::Net::InetAddress &address)
Create Client.
Definition Buffer_test.h:58
void Test0(int a, int b)
Basic Class Function.
void Test(float f)
Basic Override Class Function.
void Test()
Basic Override Class Function.
static void Test1()
Static Class Function.
Test Function Class.
void SetUp() override
The interface is inherited from testing::Test. Registry on Initialize.
void TearDown() override
Testing class TearDown function.
Instance Delegate Class.
bool b(int q, float w) const
static bool c(int q, float w)
const volatile std::string m_Name_b
FieldTraitsTest(const std::string &name)
static bool sf(int a, float b, void *c)
bool fc(int a, float b, void *c) const
auto GetFResult(T &&func, Args &&... args) -> decltype(func(std::forward< Args >(args)...))
InstrumentationTimer(const char *name)
std::chrono::time_point< std::chrono::steady_clock > m_StartTimepoint
Instrumentor(Instrumentor &&)=delete
static Instrumentor & Get()
void BeginSession(const std::string &name, const std::string &filepath="results.json")
void WriteProfile(const ProfileResult &result)
InstrumentationSession * m_CurrentSession
std::ofstream m_OutputStream
Instrumentor(const Instrumentor &)=delete
MemoryPoolTest2(const MemoryPoolTest2 &)=delete
MemoryPoolTest2 & operator=(const MemoryPoolTest2 &)=delete
static constexpr size_t y
std::array< std::array< int, x >, y > datas
static constexpr size_t x
MemoryPoolTest(const MemoryPoolTest &)=delete
MemoryPoolTest & operator=(const MemoryPoolTest &)=delete
std::tuple< int, float, void * > m_Tuple
void SetUp() override
The interface is inherited from testing::Test. Registry on Initialize.
static constexpr size_t n2
Iter counts 2.
void TearDown() override
The interface is inherited from testing::Test. Call before Destructor.
static constexpr size_t n
Iter counts.
The interface is inherited from testing::Test. Registry on Initialize.
void SetUp() override
The interface is inherited from testing::Test. Registry on Initialize.
std::unique_ptr< Spices::ObjectPool< Object > > m_ObjectPool
ObjectPool.
void TearDown() override
The interface is inherited from testing::Test. Call before Destructor.
static constexpr size_t n
ObjectPool objects number.
The interface is inherited from testing::Test. Registry on Initialize.
virtual ~Object()=default
void SetUp() override
The interface is inherited from testing::Test. Registry on Initialize.
Spices::PageCache pc
PageCache.
static constexpr size_t n
Test iter number.
void TearDown() override
The interface is inherited from testing::Test. Call before Destructor.
The interface is inherited from testing::Test. Registry on Initialize.
static void StartServer(const Spices::Net::InetAddress &address)
Create Server.
Definition Socket_test.h:22
static std::atomic_int m_NSends
Definition Socket_test.h:64
static std::atomic_int m_NReceives
Definition Socket_test.h:65
static void StartClient(Spices::Net::InetAddress &address)
Create Client.
Definition Socket_test.h:47
void onConnection(const Spices::Net::TcpConnectionPtr &connection)
Spices::Net::TcpServer m_Server
void onMessage(const Spices::Net::TcpConnectionPtr &connection, Spices::Net::Buffer *buf)
TcpServerTest(const Spices::Net::InetAddress &addr)
Declare Empty Class.
ThreadCacheTest & operator=(const ThreadCacheTest &)=delete
std::tuple< int, float, void * > m_Tuple
ThreadCacheTest(const ThreadCacheTest &)=delete
static constexpr size_t n
Iter counts.
void TearDown() override
The interface is inherited from testing::Test. Call before Destructor.
void SetUp() override
The interface is inherited from testing::Test. Registry on Initialize.
Spices::ThreadCache tc
ThreadCache.
The interface is inherited from testing::Test. Registry on Initialize.
void SetUp() override
The interface is inherited from testing::Test. Registry on Initialize.
Spices::ThreadPool m_ThreadPool
ThreadPool.
const int nThreads
Number of Threads in ThreadPool.
The interface is inherited from testing::Test. Registry on Initialize.
int nThreads
Number of Threads in ThreadPool.
void SetUp() override
The interface is inherited from testing::Test. Registry on Initialize.
Spices::ThreadPool m_ThreadPool
ThreadPool.
The interface is inherited from testing::Test. Registy on Initialize.
std::string Test(std::string str)
Basic Override Class Function.
static bool Test1()
Static Class Function.
int Test0(int a, int b)
Basic Class Function.
bool Test()
Basic Override Class Function.
static const int m_TextureSize
Texture's width and height.
virtual void TearDown() override
The interface is inherited from testing::Test. Registry on ShutDown.
virtual void SetUp() override
The interface is inherited from testing::Test. Registry on Initialize.
std::unique_ptr< Spices::VulkanImage > m_VulkanImage
The unique pointer of VulkanImage.
Unit Test for VulkanImage.
virtual void SetUp() override
The interface is inherited from testing::Test. Registy on Initialize.
virtual void TearDown() override
The interface is inherited from testing::Test. Registry on ShutDown.
Unit Test for VulkanRenderBackend.
void Test(float f)
Basic Override Class Function.
void Test()
Basic Override Class Function.
void TearDown() override
Testing class TearDown function.
std::vector< scl::directed_acyclic_node > m_Nodes
void SetUp() override
Testing class initialize function.
The interface is inherited from testing::Test. Registy on Initialize.
void SetUp() override
The interface is inherited from testing::Test. Registry on Initialize.
void TearDown() override
The interface is inherited from testing::Test. Call before Destructor.
The interface is inherited from testing::Test. Registry on Initialize.
scl::kd_tree< 2 > m_KDTree
Create a KDTree with 2 dimensions.
Definition KDTree_test.h:57
void TearDown() override
Testing class TearDown function.
Definition KDTree_test.h:52
void SetUp() override
Testing class initialize function.
Definition KDTree_test.h:27
The interface is inherited from testing::Test. Registry on Initialize.
Definition KDTree_test.h:21
scl::linked_unordered_map< int, std::string > c1
scl::linked_unordered_map< float, std::string > c2
scl::linked_unordered_map< std::string, std::string > c0
void SetUp() override
Testing class initialize function.
void TearDown() override
Testing class TearDown function.
The interface is inherited from testing::Test. Registry on Initialize.
void SetUp() override
The interface is inherited from testing::Test. Registry on Initialize.
void TearDown() override
Testing class TearDown function.
Unit Test for RuntimeMemoryBlock.
void TearDown() override
The interface is inherited from testing::Test. Call before Destructor.
void SetUp() override
The interface is inherited from testing::Test. Registry on Initialize.
The interface is inherited from testing::Test. Registry on Initialize.
static std::string GetClassString(ClassType t)
Get Class Name as string.
Class Static Function Library.
virtual ~ClassTraitsTest()=default
bool f(int q, float w, void *c, bool(ClassTraitsTest::*)(int **, int &&))
std::reference_wrapper< const int > cir
bool f(int q, float w)
std::reference_wrapper< int * > ipr
std::reference_wrapper< const int * > cipr
std::reference_wrapper< const int const *const > cicpcr
bool fc(int q, float w) const
static bool fs(int q, float w)
auto mfc(F func, Args ...args) -> decltype(f(std::forward< Args >(args)...))
std::reference_wrapper< int > ir
static bool FileLibrary_Size(const FileHandle *handle, uint64_t *out_size)
Calculate The file size.
static bool FileLibrary_Read(const FileHandle *handle, uint64_t data_size, void *out_data, uint64_t *out_bytes_read)
Read Specific size of data form the current file handle pointer, and move pointer the same size.
static bool FileLibrary_Write_Line(const FileHandle *handle, const char *text)
Write one line data to the file handle pointer.
static bool FileLibrary_Write(const FileHandle *handle, uint64_t data_size, const void *data, uint64_t *out_bytes_written)
Write given data to the file handle pointer.
static bool FileLibrary_Open(const char *path, FileModes mode, bool binary, FileHandle *out_handle)
Open the file using given string.
static void FileLibrary_Close(FileHandle *handle)
Close the file by the file handle.
static bool FileLibrary_Delete(const char *filePath)
Delete a file from disk.
static bool FileLibrary_CopyFile(std::string srcFilePath, std::string dstFilePath)
Copy a file to dst path.
static bool FileLibrary_Read_Line(const FileHandle *handle, uint64_t max_length, char *line_buf, uint64_t *out_line_length)
Read one line from the current file handle pointer, and move pointer the same size.
static bool FileLibrary_Exists(const char *path)
Determine whether the given string is existing a file.
static bool FileLibrary_Read_all_bytes(const FileHandle *handle, char *out_bytes, uint64_t *out_bytes_read)
Read all data form the current file handle pointer.
File Static Function Library.
Definition FileLibrary.h:49
static void Init()
Init Log.
Definition Log.cpp:24
static void ShutDown()
Shutdown Log.
Definition Log.cpp:82
static void Free(void *ptr)
Free memory entry point.
static void *& PointerSpace(void *obj)
Get object first 4/8 bytes as a pointer.
MemoryPool Class.
Definition MemoryPool.h:22
void RetrieveAll()
Retrieve all buffer data.
Definition Buffer.h:87
Wrapper of readwrite buffer.
Definition Buffer.h:19
void EnableWriting()
Enable Write event.
Definition Channel.h:156
Wrapper of SOCKET'S Event.
Definition Channel.h:27
EPollPoller(EventLoop *loop)
Constructor Function.
static EventLoop *& GetInst(InetAddress *address=nullptr)
Get EventLoop Instance. @reutrn Returns EventLoop Instance.
Wrapper of Instance/Delete ThreadCache in thread.
Definition EventLoop.h:180
void Loop()
Start Event Loop.
Definition EventLoop.cpp:48
Wrapper of Poller and wakeup socket to acceptor(SubLoop).
Definition EventLoop.h:28
uint16_t ToPort() const
Get Port and Port from Socket Address.
This class is Wrapper of current socket address.
Definition InetAddress.h:22
void Connect(InetAddress *connectAddress) const
Connect to socket.
Definition Socket.cpp:62
void BindAddress(const InetAddress &localAddress) const
Bind address to socket.
Definition Socket.cpp:36
void Create()
Create Non Blocking Socket.
Definition Socket.cpp:27
void Listen() const
Listen on socket.
Definition Socket.cpp:49
This class is Wrapper of socket.
Definition Socket.h:18
Sample of a TcpServer.
Definition TcpServer.h:29
Page memory cache. Third level of memory allocator.
Definition PageCache.h:21
static bool CloseProcess(const char *processName)
Close a Process with command.
static bool OpenProcess(const char *processPath, const char *commandLine="")
Open a Process with command.
static float ProcessMemoryInUsed()
Get this Process Memory used( GB ).
Process Static Function Library.
static bool StringsEqual(const char *str0, const char *str1)
Determine if the strings given are equal. Platform Specific.
String Static Function Library.
Thread memory cache. First level of memory allocator.
Definition ThrealCache.h:19
static bool SetThreadName(const std::string &name)
Set Thread name.
Thread Static Function Library.
This Class is a Wrapper of VulkanBuffer.
void Sign(int sign)
Sign this semaphore with specific value.
Definition Semaphore.h:34
void Increase()
Increase this semaphore sign.
Definition Semaphore.h:45
void Wait(int sign)
Wait this semaphore until it owns equal sign with given.
Definition Semaphore.h:57
const int GetSign() const
Get this semaphore current sign.
Definition Semaphore.h:70
std::semaphore Implementation.
Definition Semaphore.h:16
behave_state_list. wrapper of combing all state behaves.
bool Empty() const
Determine if this list is empty.
Definition FreeList.h:50
void Push(void *obj)
Recycle a object memory to this free list.
Definition FreeList.cpp:13
void *& Begin()
Get current pointer (no const & reference version).
Definition FreeList.h:94
void *& End()
Get end pointer (no const & reference version).
Definition FreeList.h:100
Free list for memory pool.
Definition FreeList.h:16
The kd_tree with K dimensions container Class. K the number of dimensions. Every node in the tree is ...
Definition KDTree.h:27
The container combines hashmap and list together. Used in the case that we want iter a hashmap in ord...
void build()
Malloc a memory to begin_.
void add_element(const std::string &name, const std::string &type)
Add a element to object_, means a memory block will be occupied with given param type.
runtime_memory_block()=default
Constructor Function.
void * get_addr() const
Get the begin_.
The container is wrapper of a continue memory block. Used in Material::BuildMaterial(),...
Bidirectional cyclic linked list for span.
Definition SpanList.h:73
span * m_Next
next span.
Definition SpanList.h:41
span * m_Prev
previous span.
Definition SpanList.h:46
Used for manage multiple page memory.
Definition SpanList.h:15
simple tree.
Definition Tree.h:18
This Class is similar to std::vector, the difference between that is this one allocates memory by mal...
Definition Vector.h:18
int main(int argc, char **argv)
The Entry of SpicesTest.
Definition main.cpp:76
static bool sf(int a, float b, void *c)
constexpr auto CleanupOutputString(const char(&expr)[N], const char(&remove)[K])
TEST_F(free_list_test, PushPop)
Testing scl::free_list::Push/Pop.
TEST_F(runtime_memory_block_test, Initialize)
Testing if initialize successfully.
TEST_F(directed_acyclic_graph_test, Addnode)
Testing if add node successfully.
TEST_F(ThreadPoolFixed_test, Initialize)
Testing if initialize successfully.
TEST_F(span_list_test, Initialize)
Testing scl::span_list::Initialize.
TEST_F(linked_unordered_map_test, Initialize)
Testing if initialize successfully.
TEST_F(kd_tree_test, Insert)
Testing if Insert successfully.
Definition KDTree_test.h:63
void DelegateTestT(Args ...args)
Template Function.
TEST_F(MemoryPool_test, PointerSpace)
Testing Spices::MemoryPool::PointerSpace.
TEST(tuple_test, IterTuple)
Testing std::tuple Helper Function.
Definition Tuple_test.h:17
TEST_F(VulkanImage_test, Initialize)
Testing VulkanImage Initialize.
RType ThreadPoolTestT(Args &&...args)
Template Function.
TEST_F(ObjectPool_test, Initialize)
Testing Spices::ObjectPool::Initialize.
TEST_F(Delegate_test, Bind)
Testing if bind successfully.
TEST_F(ThreadPoolCached_test, Initialize)
Testing if initialize successfully.
TEST_F(ThreadCache_test, AllocateDeallocate)
Testing Spices::ThreadCache::Allocate/Deallocate.
TEST_F(PageCache_test, NewSpan)
Testing Spices::PageCache::NewSpan.
constexpr bool is_pointer_v< _Ty *const volatile >
Definition IsPointer.h:27
Spices::ClassTraitsTest inst
constexpr bool is_pointer_v< _Ty *const >
Definition IsPointer.h:21
const int * ecip
constexpr bool is_const_v
value of is_const.
Definition IsConst.h:100
ClassItemType
class property/function type.
Definition ClassTraits.h:19
constexpr bool is_pointer_v< _Ty * >
Definition IsPointer.h:18
constexpr bool is_pointer_v< _Ty *volatile >
Definition IsPointer.h:24
FileModes
file mode
Definition FileLibrary.h:32
@ FILE_MODE_READ
model : read
Definition FileLibrary.h:37
@ FILE_MODE_WRITE
model : write
Definition FileLibrary.h:42
constexpr bool is_pointer_v
Declare of is_pointer.
Definition IsPointer.h:15
void IterTuple(Tuple &tuple, Function &&f)
Iter a tuple.
Definition Tuple.h:34
std::thread::id ThreadID
std::chrono::microseconds ElapsedTime
FloatingPointMicroseconds Start
static constexpr bool value
static constexpr bool value
void * handle
FILE* handle. Need cast while use.
Definition FileLibrary.h:21
bool is_valid
Is this handle Valid.
Definition FileLibrary.h:26
This Struct is FILE* handle pointer Wrapper.
Definition FileLibrary.h:15
bool operator==(const String2 &other) const
equal operation.
Definition Math.h:88
double string
Definition Math.h:63
bool operator==(const UInt2 &other) const
equal operation.
Definition Math.h:42
UInt2(const uint32_t &x, const uint32_t &y)
Constructor Function.
Definition Math.h:30
double unsigned int
Definition Math.h:17
constexpr bool is_variable() const
Definition FieldTraits.h:83
constexpr bool is_function() const
Definition FieldTraits.h:78
constexpr bool is_variable() const
Definition FieldTraits.h:48
constexpr bool is_member() const
Definition FieldTraits.h:33
constexpr bool is_function() const
Definition FieldTraits.h:43
constexpr bool is_const() const
Definition FieldTraits.h:38
constexpr size_t param_count() const
Definition FieldTraits.h:53
static constexpr bool value
Definition IsConst.h:52
is_const remove pointer from type.
Definition IsConst.h:51
is_const remove reference(both pointer) from type. For reference and pointer can be mixed together.
Definition IsConst.h:62
static constexpr bool value
Definition IsConst.h:31
static constexpr bool value
Definition IsConst.h:21
Declare of is_const.
Definition IsConst.h:20
Store Non Member Variable Type.
T pointer
Field pointer.
std::string_view name
Field Name.
size_t offset
Field offset.
constexpr field_traits(T &&p, std::string_view n, size_t offset=0)
Definition FieldTraits.h:96
Field Traits template.
Definition FieldTraits.h:95
Collection of Type and Class.
is_const process pointer or reference.
Definition IsConst.h:93
Container of store Types.
Definition TypeList.h:20