mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-09 13:51:31 +00:00
Add serialiser utility functions checking read/write mode externally
This commit is contained in:
1 parent
357735d1d2
commit
dfd800c0f8
1 file changed
+10
@@ -190,6 +190,16 @@ class Serialiser
|
||||
return m_AlignedData;
|
||||
}
|
||||
|
||||
bool IsReading() const
|
||||
{
|
||||
return m_Mode == READING;
|
||||
}
|
||||
|
||||
bool IsWriting() const
|
||||
{
|
||||
return !IsReading();
|
||||
}
|
||||
|
||||
uint64_t GetOffset() const
|
||||
{
|
||||
if(m_HasError)
|
||||
|
||||
Reference in new issue
Block a user