CM2Shared
struct · models · 356 bytes
- Meaning
- Holds a model file: its fixed-up data, view, textures, shader ids and buffers
- Confidence
- verified, proof one
- Finding
- models/shared#shared-model-object
Finding: Shared model object in models: the shared model
| offset | holds |
|---|---|
+0x000, +0x004 | reference count, cache |
+0x008 | flags: 1 loaded, 2 the open flag the load was given |
+0x00c | read request while loading |
+0x010 | instances waiting for the load (link +0x1c/+0x20 in the instance) |
+0x014, +0x018, +0x01c | release list links, release time |
+0x020 | file name, 0x104 bytes |
+0x124, +0x128, +0x12c | bucket links, name hash |
+0x130, +0x134 | file data, file size |
+0x138, +0x13c | selected view, texture handles |
+0x140 to +0x14c | device index buffer handles, device vertex buffer handles |
+0x150, +0x154, +0x158 | per-batch vertex and pixel shader ids, copy of the view's submeshes |
+0x15c, +0x160 | instance copies the device buffers hold, most instances one batched draw may take |
The derivation is in the doc.
Fields 8
| offset | size | type | name | meaning | confidence | finding |
|---|---|---|---|---|---|---|
0x0000 | 4 | uint32_t | m_refCount | Holds the shared model's reference count | verified, proof one | models/shared#shared-model-object |
0x0004 | 4 | M2Cache * | m_cache | Holds the cache the shared model belongs to | verified, proof one | models/shared#shared-model-object |
0x0008 | 4 | uint32_t | m_flags | Holds flag 1 when loaded and flag 2 when the load's open flag allows loose files | verified, proof one | models/shared#shared-model-object |
0x0020 | 260 | char[260] | m_name | Holds the file name | verified, proof one | models/shared#shared-model-object |
0x012c | 4 | uint32_t | m_hash | Holds the hash of the file name | verified, proof one | models/shared#shared-model-object |
0x0130 | 4 | void * | m_data | Holds the file data with its offsets fixed up | verified, proof one | models/shared#shared-model-object |
0x0134 | 4 | uint32_t | m_size | Holds the file size | verified, proof one | models/shared#shared-model-object |
0x0138 | 4 | void * | m_view | Holds the selected view | verified, proof one | models/shared#shared-model-object |