Merge pull request #24 from lioncash/ctor

IGraphicsDataFactory: Default initialize semantic for VertexElementDescriptor
This commit is contained in:
2019-08-18 12:08:56 -07:00
committed by GitHub

View File

@@ -118,7 +118,7 @@ ENABLE_BITWISE_ENUM(VertexSemantic)
/** Used to create IVertexFormat */ /** Used to create IVertexFormat */
struct VertexElementDescriptor { struct VertexElementDescriptor {
VertexSemantic semantic; VertexSemantic semantic{};
int semanticIdx = 0; int semanticIdx = 0;
VertexElementDescriptor() = default; VertexElementDescriptor() = default;
VertexElementDescriptor(VertexSemantic s, int idx = 0) : semantic(s), semanticIdx(idx) {} VertexElementDescriptor(VertexSemantic s, int idx = 0) : semantic(s), semanticIdx(idx) {}