|
| 1 | +{ |
| 2 | + "$id": "https://gpuopen.com/vulkan-memory-allocator/schemas/GpuMemDump", |
| 3 | + "$schema": "https://json-schema.org/draft/2020-12/schema", |
| 4 | + "type": "object", |
| 5 | + "properties": { |
| 6 | + "General": { |
| 7 | + "type": "object", |
| 8 | + "properties": { |
| 9 | + "API": {"type": "string", "enum": ["Vulkan", "Direct3D 12"]}, |
| 10 | + "GPU": {"type": "string"} |
| 11 | + }, |
| 12 | + "required": ["API", "GPU"] |
| 13 | + }, |
| 14 | + "Total": {"$ref": "#/$defs/Stats"}, |
| 15 | + "MemoryInfo": { |
| 16 | + "type": "object", |
| 17 | + "additionalProperties": { |
| 18 | + "type": "object", |
| 19 | + "properties": { |
| 20 | + "Flags": { |
| 21 | + "type": "array", |
| 22 | + "items": {"type": "string"} |
| 23 | + }, |
| 24 | + "Size": {"type": "integer"}, |
| 25 | + "Budget": { |
| 26 | + "type": "object", |
| 27 | + "properties": { |
| 28 | + "BudgetBytes": {"type": "integer"}, |
| 29 | + "UsageBytes": {"type": "integer"} |
| 30 | + }, |
| 31 | + "additionalProperties": false |
| 32 | + }, |
| 33 | + "Stats": {"$ref": "#/$defs/Stats"}, |
| 34 | + "MemoryPools": { |
| 35 | + "type": "object", |
| 36 | + "additionalProperties": { |
| 37 | + "type": "object", |
| 38 | + "properties": { |
| 39 | + "Flags": { |
| 40 | + "type": "array", |
| 41 | + "items": {"type": "string"} |
| 42 | + }, |
| 43 | + "Stats": {"$ref": "#/$defs/Stats"} |
| 44 | + }, |
| 45 | + "additionalProperties": false |
| 46 | + } |
| 47 | + } |
| 48 | + }, |
| 49 | + "required": ["Budget", "Stats"], |
| 50 | + "additionalProperties": false |
| 51 | + } |
| 52 | + }, |
| 53 | + "DefaultPools": { |
| 54 | + "type": "object", |
| 55 | + "additionalProperties": { |
| 56 | + "type": "object", |
| 57 | + "properties": { |
| 58 | + "PreferredBlockSize": {"type": "integer"}, |
| 59 | + "Blocks": { |
| 60 | + "type": "object", |
| 61 | + "propertyNames": {"pattern": "[0-9]+"}, |
| 62 | + "additionalProperties": {"$ref": "#/$defs/Block"} |
| 63 | + }, |
| 64 | + "DedicatedAllocations": { |
| 65 | + "type": "array", |
| 66 | + "items": {"$ref": "#/$defs/DedicatedAllocation"} |
| 67 | + } |
| 68 | + } |
| 69 | + } |
| 70 | + }, |
| 71 | + "CustomPools": { |
| 72 | + "type": "object", |
| 73 | + "additionalProperties": { |
| 74 | + "type": "array", |
| 75 | + "items": { |
| 76 | + "type": "object", |
| 77 | + "properties": { |
| 78 | + "Name": {"type": "string"}, |
| 79 | + "Flags": {"type": "array"}, |
| 80 | + "PreferredBlockSize": {"type": "integer"}, |
| 81 | + "Blocks": { |
| 82 | + "type": "object", |
| 83 | + "additionalProperties": {"$ref": "#/$defs/Block"} |
| 84 | + }, |
| 85 | + "DedicatedAllocations": { |
| 86 | + "type": "array", |
| 87 | + "items": {"$ref": "#/$defs/DedicatedAllocation"} |
| 88 | + } |
| 89 | + }, |
| 90 | + "required": ["PreferredBlockSize"], |
| 91 | + "additionalProperties": false |
| 92 | + } |
| 93 | + } |
| 94 | + } |
| 95 | + }, |
| 96 | + "required": ["General", "Total", "MemoryInfo"], |
| 97 | + "additionalProperties": false, |
| 98 | + "$defs": { |
| 99 | + "CustomData": { |
| 100 | + "type": "string", |
| 101 | + "pattern": "^[0-9a-zA-Z]+$" |
| 102 | + }, |
| 103 | + "Stats": { |
| 104 | + "type": "object", |
| 105 | + "properties": { |
| 106 | + "BlockCount": {"type": "integer"}, |
| 107 | + "BlockBytes": {"type": "integer"}, |
| 108 | + "AllocationCount": {"type": "integer"}, |
| 109 | + "AllocationBytes": {"type": "integer"}, |
| 110 | + "UnusedRangeCount": {"type": "integer"}, |
| 111 | + "AllocationSizeMin": {"type": "integer"}, |
| 112 | + "AllocationSizeMax": {"type": "integer"}, |
| 113 | + "UnusedRangeSizeMin": {"type": "integer"}, |
| 114 | + "UnusedRangeSizeMax": {"type": "integer"} |
| 115 | + }, |
| 116 | + "required": [ |
| 117 | + "BlockCount", "BlockBytes", |
| 118 | + "AllocationCount", "AllocationBytes", |
| 119 | + "UnusedRangeCount" |
| 120 | + ], |
| 121 | + "additionalProperties": false |
| 122 | + }, |
| 123 | + "Block": { |
| 124 | + "type": "object", |
| 125 | + "properties": { |
| 126 | + "MapRefCount": {"type": "integer"}, |
| 127 | + "TotalBytes": {"type": "integer"}, |
| 128 | + "UnusedBytes": {"type": "integer"}, |
| 129 | + "Allocations": {"type": "integer"}, |
| 130 | + "UnusedRanges": {"type": "integer"}, |
| 131 | + "Suballocations": {"type": "array", "items": {"$ref": "#/$defs/Suballocation"}} |
| 132 | + }, |
| 133 | + "required": ["TotalBytes", "UnusedBytes", "Allocations", "UnusedRanges"] |
| 134 | + }, |
| 135 | + "DedicatedAllocation": { |
| 136 | + "type": "object", |
| 137 | + "properties": { |
| 138 | + "Type": {"type": "string"}, |
| 139 | + "Size": {"type": "integer"}, |
| 140 | + "Usage": {"type": "integer"}, |
| 141 | + "CustomData": {"$ref": "#/$defs/CustomData"}, |
| 142 | + "Name": {"type": "string"}, |
| 143 | + "Layout": {"type": "integer"} |
| 144 | + }, |
| 145 | + "required": ["Type", "Size"], |
| 146 | + "additionalProperties": false |
| 147 | + }, |
| 148 | + "Suballocation": { |
| 149 | + "type": "object", |
| 150 | + "properties": { |
| 151 | + "Offset": {"type": "integer"}, |
| 152 | + "Type": {"type": "string"}, |
| 153 | + "Size": {"type": "integer"}, |
| 154 | + "Usage": {"type": "integer"}, |
| 155 | + "CustomData": {"$ref": "#/$defs/CustomData"}, |
| 156 | + "Name": {"type": "string"}, |
| 157 | + "Layout": {"type": "integer"} |
| 158 | + }, |
| 159 | + "required": ["Offset", "Type", "Size"], |
| 160 | + "additionalProperties": false |
| 161 | + } |
| 162 | + } |
| 163 | +} |
0 commit comments