summaryrefslogtreecommitdiff
path: root/Runtime/Graphics/CustomVertexLayout.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-11-01 09:50:03 +0800
committerchai <chaifix@163.com>2021-11-01 09:50:03 +0800
commit8078aeed4e62c6b3aa48102554044768b402570c (patch)
tree45928c5b35df5dd3f952ccb789c84b7986743b26 /Runtime/Graphics/CustomVertexLayout.h
parent20577019253d0b2938fbf0057eed0bda72556e82 (diff)
*misc
Diffstat (limited to 'Runtime/Graphics/CustomVertexLayout.h')
-rw-r--r--Runtime/Graphics/CustomVertexLayout.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Runtime/Graphics/CustomVertexLayout.h b/Runtime/Graphics/CustomVertexLayout.h
index cd68a27..8f9dda8 100644
--- a/Runtime/Graphics/CustomVertexLayout.h
+++ b/Runtime/Graphics/CustomVertexLayout.h
@@ -12,6 +12,11 @@ struct CustomVertexLayout
GLuint buffer; // 创建时留空
std::vector<VertexAttributeDescriptor> attributes;
+ CustomVertexLayout()
+ {
+ int n = buffer;
+ }
+
// 重置pointer(startOffset)为0
void RestorePointer()
{