Changeset View
Changeset View
Standalone View
Standalone View
source/creator/creator_args.c
| Show First 20 Lines • Show All 1,144 Lines • ▼ Show 20 Lines | else if (STREQ(argv[1], "metal")) { | ||||
| gpu_backend = GPU_BACKEND_METAL; | gpu_backend = GPU_BACKEND_METAL; | ||||
| } | } | ||||
| # endif | # endif | ||||
| else { | else { | ||||
| printf("\nError: Unrecognized GPU backend for '--gpu-backend'.\n"); | printf("\nError: Unrecognized GPU backend for '--gpu-backend'.\n"); | ||||
| return 0; | return 0; | ||||
| } | } | ||||
| GPU_backend_type_selection_set(gpu_backend); | GPU_backend_type_selection_set_override(gpu_backend); | ||||
| if (!GPU_backend_supported()) { | |||||
| printf("\nError: GPU backend not supported.\n"); | |||||
| return 0; | |||||
| } | |||||
| return 1; | return 1; | ||||
| } | } | ||||
| static const char arg_handle_debug_fpe_set_doc[] = | static const char arg_handle_debug_fpe_set_doc[] = | ||||
| "\n\t" | "\n\t" | ||||
| "Enable floating-point exceptions."; | "Enable floating-point exceptions."; | ||||
| static int arg_handle_debug_fpe_set(int UNUSED(argc), | static int arg_handle_debug_fpe_set(int UNUSED(argc), | ||||
| ▲ Show 20 Lines • Show All 1,179 Lines • Show Last 20 Lines | |||||