Merge pull request #24 from lioncash/ctor

IGraphicsDataFactory: Default initialize semantic for VertexElementDescriptor
This commit is contained in:
Phillip Stephens 2019-08-18 12:08:56 -07:00 committed by GitHub
commit b67eb2ba06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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