31#define WM_PLATFORM_SUPPORT_TEXT_SIZE 1024
40 if (
G.factory_startup) {
44 if (!cfgdir.has_value()) {
52 for (
LinkNode *line_node = lines; line_node; line_node = line_node->next) {
53 const char *line =
static_cast<char *
>(line_node->link);
54 if (
STREQ(line, platform_support_key)) {
63 fprintf(fp,
"%s\n", platform_support_key);
76 BLI_dynstr_append(ds,
"https://docs.blender.org/manual/en/dev/troubleshooting/gpu/");
79#elif defined(__APPLE__)
127 bool show_message =
ELEM(
130 bool show_link = backend_detected;
139 switch (support_level) {
155 "Your graphics card or driver version has limited support. It may work, but with "
166 "Newer graphics drivers might be available with better Blender compatibility."));
193 "Your graphics card or macOS version is not supported"));
200 "Upgrading to the latest macOS version may improve Blender support"));
206 "Your graphics card or driver version is not supported."));
213 "Newer graphics drivers might be available with better Blender compatibility."));
221 if (!show_continue) {
238 CLOG_INFO(&
LOG,
"%s\n\n%s\n%s\n", title, message, link);
246 else if (show_message) {
249 "Find Latest Drivers",
250 show_continue ?
"Continue Anyway" :
"Exit",
#define BLENDER_PLATFORM_SUPPORT_FILE
A dynamically sized string ADT.
File and directory operations.
#define BLI_path_join(...)
#define STR_CONCAT(dst, len, suffix)
#define BLT_I18NCONTEXT_ID_WINDOWMANAGER
#define CTX_IFACE_(context, msgid)
#define CLOG_INFO_NOCHECK(clg_ref, format,...)
#define CLOG_INFO(clg_ref,...)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
FILE * BLI_fopen(const char *filepath, const char *mode) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
GPUBackendType GPU_backend_get_type()
bool WM_platform_support_perform_checks()
const char * GPU_platform_gpu_name()
void BLI_dynstr_free(DynStr *ds) ATTR_NONNULL()
@ GPU_SUPPORT_LEVEL_UNSUPPORTED
@ GPU_SUPPORT_LEVEL_LIMITED
@ GPU_SUPPORT_LEVEL_SUPPORTED
struct LinkNode * BLI_file_read_as_lines(const char *filepath) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
GPUSupportLevel GPU_platform_support_level()
static bool wm_platform_support_check_approval(const char *platform_support_key, bool update)
bool GPU_type_matches(GPUDeviceType device, GPUOSType os, GPUDriverType driver)
std::optional< std::string > BKE_appdir_folder_id(int folder_id, const char *subfolder) ATTR_WARN_UNUSED_RESULT
void BLI_dynstr_append(DynStr *__restrict ds, const char *cstr) ATTR_NONNULL()
static void wm_platform_support_create_link(char *link)
const char * GPU_backend_get_name()
const char * GPU_platform_support_level_key()
void WM_ghost_show_message_box(const char *title, const char *message, const char *help_label, const char *continue_label, const char *link, GHOST_DialogOptions dialog_options)
void BLI_dynstr_get_cstring_ex(const DynStr *__restrict ds, char *__restrict rets) ATTR_NONNULL()
int BLI_dynstr_get_len(const DynStr *ds) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
void BLI_file_free_lines(struct LinkNode *lines)
DynStr * BLI_dynstr_new() ATTR_MALLOC ATTR_WARN_UNUSED_RESULT