+ } else if (strcmp(optarg, "d3d7") == 0) {
+ api = trace::API_D3D7;
+ } else if (strcmp(optarg, "d3d8") == 0) {
+ api = trace::API_D3D8;
+ } else if (strcmp(optarg, "d3d9") == 0) {
+ api = trace::API_D3D9;
+ } else if (strcmp(optarg, "d3d10") == 0) {
+ api = trace::API_D3D10;
+ } else if (strcmp(optarg, "d3d10_1") == 0) {
+ api = trace::API_D3D10_1;
+ } else if (strcmp(optarg, "d3d11") == 0) {
+ api = trace::API_D3D11;