mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Change vector to rdctype::array so size is consistent across compilers
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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<>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user