mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-21 13:15:57 +00:00
Move section data types into the public replay interface
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user