mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-08 02:50:31 +00:00
Add serialiser utility functions checking read/write mode externally
This commit is contained in:
@@ -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