Add default constructor for MeshFormat

This commit is contained in:
baldurk
2017-02-17 12:27:47 +00:00
parent 8ffcab84d9
commit 55dee854d6
2 changed files with 20 additions and 1 deletions
+19
View File
@@ -35,6 +35,25 @@ struct OutputConfig
struct MeshFormat
{
MeshFormat()
{
idxoffs = 0;
idxByteWidth = 0;
baseVertex = 0;
offset = 0;
stride = 0;
compCount = 0;
compByteWidth = 0;
compType = eCompType_None;
bgraOrder = false;
specialFormat = eSpecial_Unknown;
showAlpha = false;
topo = eTopology_Unknown;
numVerts = 0;
unproject = false;
nearPlane = farPlane = 0.0f;
}
ResourceId idxbuf;
uint64_t idxoffs;
uint32_t idxByteWidth;
+1 -1
View File
@@ -2727,7 +2727,7 @@ void ReplayProxy::InitPostVSBuffers(const vector<uint32_t> &events)
MeshFormat ReplayProxy::GetPostVSBuffers(uint32_t eventID, uint32_t instID, MeshDataStage stage)
{
MeshFormat ret = {};
MeshFormat ret;
m_ToReplaySerialiser->Serialise("", eventID);
m_ToReplaySerialiser->Serialise("", instID);