Introduce 'drivers/apple_embedded' abstract platform for code reuse
This commit is contained in:
@ -39,6 +39,9 @@ if "-std=gnu++17" in env_metal["CXXFLAGS"]:
|
||||
env_metal["CXXFLAGS"].remove("-std=gnu++17")
|
||||
env_metal.Append(CXXFLAGS=["-std=c++20"])
|
||||
|
||||
# Enable module support
|
||||
env_metal.Append(CCFLAGS=["-fmodules", "-fcxx-modules"])
|
||||
|
||||
# Driver source files
|
||||
|
||||
driver_obj = []
|
||||
|
||||
@ -4184,8 +4184,8 @@ Error RenderingDeviceDriverMetal::initialize(uint32_t p_device_index, uint32_t p
|
||||
error_string += "- No support for image cube arrays.\n";
|
||||
}
|
||||
|
||||
#if defined(IOS_ENABLED)
|
||||
// iOS platform ports currently don't exit themselves when this method returns `ERR_CANT_CREATE`.
|
||||
#if defined(APPLE_EMBEDDED_ENABLED)
|
||||
// Apple Embedded platforms exports currently don't exit themselves when this method returns `ERR_CANT_CREATE`.
|
||||
OS::get_singleton()->alert(error_string + "\nClick OK to exit (black screen will be visible).");
|
||||
#else
|
||||
OS::get_singleton()->alert(error_string + "\nClick OK to exit.");
|
||||
|
||||
Reference in New Issue
Block a user