WBF

From wowdev
Jump to navigation Jump to search
This section only applies to versions ≥ Battle.

WBF files are a Battle cache file, located within the Cache folder. They contain, at the very least, information about graphic card hardware, drivers and software. Each compatible device has it's own named WBF file e.g. DX12ShaderCache_AMD_Radeon_TM_R9_390_Series.wbf. They are only used by the Windows client and only for devices with DirectX 12 support.

Header

char magic[4];     // CSXG
uint32_t version;  // 2 Battle (8.0.1.26892) … Battle (8.0.1.27089), 3 ≥ Battle (8.0.1.27101)
char unk_1[0x18];  // final 8 bytes (at least) is driver version related
uint32_t OsVersion;
uint32_t OsBits;  // 0 = x86, 1 = x64
uint32_t unk_2;    // flags?
uint32_t vendor_id;
uint32_t device_id;
uint32_t subsystem_vendor_id;
uint32_t subsystem_device_id;
uint32_t revision;
uint32_t unk4;     // number of devices?
...