| 3218 | } |
| 3219 | |
| 3220 | void BlockMetadata::PrintDetailedMap_Allocation(JsonWriter& json, |
| 3221 | UINT64 offset, UINT64 size, void* privateData) const |
| 3222 | { |
| 3223 | json.BeginObject(true); |
| 3224 | |
| 3225 | json.WriteString(L"Offset"); |
| 3226 | json.WriteNumber(offset); |
| 3227 | |
| 3228 | if (IsVirtual()) |
| 3229 | { |
| 3230 | json.WriteString(L"Size"); |
| 3231 | json.WriteNumber(size); |
| 3232 | if (privateData) |
| 3233 | { |
| 3234 | json.WriteString(L"CustomData"); |
| 3235 | json.WriteNumber((uintptr_t)privateData); |
| 3236 | } |
| 3237 | } |
| 3238 | else |
| 3239 | { |
| 3240 | const Allocation* const alloc = (const Allocation*)privateData; |
| 3241 | D3D12MA_ASSERT(alloc); |
| 3242 | json.AddAllocationToObject(*alloc); |
| 3243 | } |
| 3244 | json.EndObject(); |
| 3245 | } |
| 3246 | |
| 3247 | void BlockMetadata::PrintDetailedMap_UnusedRange(JsonWriter& json, |
| 3248 | UINT64 offset, UINT64 size) const |
nothing calls this directly
no test coverage detected