Change vector to rdctype::array so size is consistent across compilers

This commit is contained in:
baldurk
2016-04-15 18:32:49 +02:00
parent f6ef1481b7
commit f30a1a6dc3
3 changed files with 6 additions and 7 deletions
+3 -4
View File
@@ -48,15 +48,14 @@ class ImageViewer : public IReplayDriver
m_FrameRecord.frameInfo.frameNumber = 1;
m_FrameRecord.frameInfo.immContextId = ResourceId();
RDCEraseEl(m_FrameRecord.frameInfo.stats);
FetchDrawcall d;
create_array_uninit(m_FrameRecord.drawcallList, 1);
FetchDrawcall &d = m_FrameRecord.drawcallList[0];
d.context = ResourceId();
d.drawcallID = 1;
d.eventID = 1;
d.name = filename;
m_FrameRecord.drawcallList.push_back(d);
RefreshFile();
create_array_uninit(m_PipelineState.m_OM.RenderTargets, 1);
+2 -2
View File
@@ -1196,8 +1196,8 @@ void Serialiser::Serialise(const char *name, FetchFrameRecord &el)
{
Serialise("", el.frameInfo);
Serialise("", el.drawcallList);
SIZE_CHECK(FetchFrameRecord, 1032);
SIZE_CHECK(FetchFrameRecord, 1016);
}
template<>
+1 -1
View File
@@ -35,7 +35,7 @@ struct FetchFrameRecord
{
FetchFrameInfo frameInfo;
vector<FetchDrawcall> drawcallList;
rdctype::array<FetchDrawcall> drawcallList;
};
// these two interfaces define what an API driver implementation must provide