mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
RTech: map more fields out for StreamDB_s
More fields reverse engineered.
This commit is contained in:
parent
48e79faffa
commit
aba1ed26b5
@ -59,28 +59,40 @@ struct ST_Material
|
|||||||
char unk2[8];
|
char unk2[8];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// todo(amos): this is the texture streaming global state,
|
||||||
|
// rename it to TextureStreamMgr_s.
|
||||||
struct StreamDB_s
|
struct StreamDB_s
|
||||||
{
|
{
|
||||||
bool unk_0;
|
|
||||||
bool initialised;
|
bool initialised;
|
||||||
char filePath[260];
|
bool hasResidentPages;
|
||||||
|
char filePath[260]; // size=MAX_PATH.
|
||||||
char gap_105[2];
|
char gap_105[2];
|
||||||
int fileHandle;
|
int fileHandle; // STBSP file handle.
|
||||||
char gap_10b[4];
|
char gap_10b[4];
|
||||||
char* stringBuffer;
|
char* stringBuffer;
|
||||||
StreamDBHeader_s header;
|
StreamDBHeader_s header;
|
||||||
ST_ResidentPage* residentPages;
|
ST_ResidentPage* residentPages;
|
||||||
MaterialGlue_t** materials;
|
MaterialGlue_t** materials;
|
||||||
ST_Material* materialInfo;
|
ST_Material* materialInfo;
|
||||||
__int64 maxResidentPageSize;
|
int64 maxResidentPageSize;
|
||||||
StreamingDBPageState_s pageStates[4];
|
StreamingDBPageState_s pageStates[4];
|
||||||
char gap_320[4];
|
|
||||||
PakStreamSet_e texStreamingMode;
|
|
||||||
int picMip;
|
int picMip;
|
||||||
float streamBspBucketBias;
|
float streamBspBucketBias;
|
||||||
float streamBspDistScale;
|
float streamBspDistScale;
|
||||||
__int64 unk_338;
|
__int64 unk_338;
|
||||||
char gap340[72];
|
uint32 streamBspCellX;
|
||||||
|
uint32 streamBspCellY;
|
||||||
|
int loadedLinkedTextureCount;
|
||||||
|
int totalMipLevelCount;
|
||||||
|
int loadedMipLevelCount;
|
||||||
|
int unk_34;
|
||||||
|
int64 usedStreamingMemory;
|
||||||
|
int64 totalStreamingMemory;
|
||||||
|
int unk_48;
|
||||||
|
int unk_50;
|
||||||
|
Vector3D streamBspCameraPos;
|
||||||
|
float streamBspHalfFovX;
|
||||||
|
float streamBspViewWidth;
|
||||||
TextureAsset_t* streamableTextures[4];
|
TextureAsset_t* streamableTextures[4];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user