-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMaterialFlowInformation.h
More file actions
29 lines (26 loc) · 943 Bytes
/
Copy pathMaterialFlowInformation.h
File metadata and controls
29 lines (26 loc) · 943 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#pragma once
#include "Reflection.hpp" // CT3: was transitive via Core.Minimal.h
#include "Core.Minimal.h"
#include <mathematics/vector2.hpp>
#include <mathematics/vector4.hpp>
#include <cstddef>
cbuffer MaterialFlowInformation
{
public:
static consteval auto reflect()
{
using Self = MaterialFlowInformation;
return meta::schema<Self>(
meta::field<&Self::m_windVector>,
meta::field<&Self::m_uvScroll>);
}
MaterialFlowInformation() = default;
~MaterialFlowInformation() = default;
math::vector4 m_windVector{ 0.f, 0.f, 0.f, 0.f };
math::vector2 m_uvScroll{ 0.f, 0.f };
math::vector2 padding{ 0.f, 0.f };
};
static_assert(sizeof(MaterialFlowInformation) == 32);
static_assert(offsetof(MaterialFlowInformation, m_windVector) == 0);
static_assert(offsetof(MaterialFlowInformation, m_uvScroll) == 16);
static_assert(offsetof(MaterialFlowInformation, padding) == 24);