Move section data types into the public replay interface

This commit is contained in:
baldurk
2017-11-17 16:31:00 +00:00
parent 0f38c4770b
commit a238d3022a
6 changed files with 160 additions and 33 deletions
+2
View File
@@ -41,6 +41,8 @@ const char *SectionTypeNames[] = {
"renderdoc/ui/bookmarks",
// Notes
"renderdoc/ui/notes",
// Resource Renames
"renderdoc/ui/resrenames",
};
RDCCOMPILE_ASSERT(ARRAY_COUNT(SectionTypeNames) == (size_t)SectionType::Count,
-33
View File
@@ -36,41 +36,8 @@ enum class ContainerError
UnsupportedVersion,
};
enum class SectionFlags : uint32_t
{
NoFlags = 0x0,
ASCIIStored = 0x1,
LZ4Compressed = 0x2,
ZstdCompressed = 0x4,
};
BITMASK_OPERATORS(SectionFlags);
enum class SectionType : uint32_t
{
Unknown = 0,
First = Unknown,
FrameCapture, // renderdoc/internal/framecapture
ResolveDatabase, // renderdoc/internal/resolvedb
FrameBookmarks, // renderdoc/ui/bookmarks
Notes, // renderdoc/ui/notes
Count,
};
ITERABLE_OPERATORS(SectionType);
extern const char *SectionTypeNames[];
struct SectionProperties
{
std::string name;
SectionType type = SectionType::Count;
SectionFlags flags = SectionFlags::NoFlags;
uint64_t version = 0;
uint64_t uncompressedSize = 0;
uint64_t compressedSize = 0;
};
struct RDCThumb
{
const byte *pixels = NULL;