summaryrefslogtreecommitdiff
path: root/Runtime/Graphics/CustomVertexLayout.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-10-28 00:47:35 +0800
committerchai <chaifix@163.com>2021-10-28 00:47:35 +0800
commit1b6f71b2777bdc74d63f988346a8cfee766718b0 (patch)
treeae710ba057f4841e7d0911eb4d3e0c346f79a524 /Runtime/Graphics/CustomVertexLayout.h
parent305ca0a09d4e750186b5190432de47f3493e806a (diff)
+DefaultVertexLayout
Diffstat (limited to 'Runtime/Graphics/CustomVertexLayout.h')
-rw-r--r--Runtime/Graphics/CustomVertexLayout.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/Runtime/Graphics/CustomVertexLayout.h b/Runtime/Graphics/CustomVertexLayout.h
new file mode 100644
index 0000000..402e663
--- /dev/null
+++ b/Runtime/Graphics/CustomVertexLayout.h
@@ -0,0 +1,15 @@
+#pragma once
+
+#include <vector>
+#include "../Utilities/UtilMacros.h"
+#include "../Shaders/ShaderChannel.h"
+#include "OpenGL.h"
+#include "GPUDataBuffer.h"
+#include "VertexAttribute.h"
+
+struct CustomVertexLayout
+{
+ GLuint buffer;
+ std::vector<VertexAttributeDescriptor> attributes;
+};
+