genxml: Add APIMODE_D3D missing enum values and improve consistency.