mirror of
https://github.com/N64Recomp/N64ModernRuntime.git
synced 2025-12-18 14:02:56 +00:00
Add Metal as a renderer (#94)
Some checks failed
validate / ubuntu (arm64, Release) (push) Has been cancelled
validate / ubuntu (x64, Debug) (push) Has been cancelled
validate / ubuntu (x64, Release) (push) Has been cancelled
validate / windows (x64, Debug) (push) Has been cancelled
validate / ubuntu (arm64, Debug) (push) Has been cancelled
validate / windows (x64, Release) (push) Has been cancelled
validate / macos (arm64, Debug) (push) Has been cancelled
validate / macos (arm64, Release) (push) Has been cancelled
validate / macos (x64, Debug) (push) Has been cancelled
validate / macos (x64, Release) (push) Has been cancelled
Some checks failed
validate / ubuntu (arm64, Release) (push) Has been cancelled
validate / ubuntu (x64, Debug) (push) Has been cancelled
validate / ubuntu (x64, Release) (push) Has been cancelled
validate / windows (x64, Debug) (push) Has been cancelled
validate / ubuntu (arm64, Debug) (push) Has been cancelled
validate / windows (x64, Release) (push) Has been cancelled
validate / macos (arm64, Debug) (push) Has been cancelled
validate / macos (arm64, Release) (push) Has been cancelled
validate / macos (x64, Debug) (push) Has been cancelled
validate / macos (x64, Release) (push) Has been cancelled
This commit is contained in:
parent
52ee0a675f
commit
ec56fb39b0
2 changed files with 4 additions and 2 deletions
|
|
@ -29,6 +29,7 @@ namespace ultramodern {
|
||||||
Auto,
|
Auto,
|
||||||
D3D12,
|
D3D12,
|
||||||
Vulkan,
|
Vulkan,
|
||||||
|
Metal,
|
||||||
OptionCount
|
OptionCount
|
||||||
};
|
};
|
||||||
enum class AspectRatio {
|
enum class AspectRatio {
|
||||||
|
|
|
||||||
|
|
@ -51,8 +51,7 @@ std::string ultramodern::renderer::GraphicsConfig::get_graphics_api_name() const
|
||||||
#elif defined(__gnu_linux__)
|
#elif defined(__gnu_linux__)
|
||||||
api = ultramodern::renderer::GraphicsApi::Vulkan;
|
api = ultramodern::renderer::GraphicsApi::Vulkan;
|
||||||
#elif defined(__APPLE__)
|
#elif defined(__APPLE__)
|
||||||
// TODO: Add MoltenVK option for Mac?
|
api = ultramodern::renderer::GraphicsApi::Metal;
|
||||||
api = ultramodern::renderer::GraphicsApi::Vulkan;
|
|
||||||
#else
|
#else
|
||||||
static_assert(false && "Unimplemented")
|
static_assert(false && "Unimplemented")
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -63,6 +62,8 @@ std::string ultramodern::renderer::GraphicsConfig::get_graphics_api_name() const
|
||||||
return "D3D12";
|
return "D3D12";
|
||||||
case ultramodern::renderer::GraphicsApi::Vulkan:
|
case ultramodern::renderer::GraphicsApi::Vulkan:
|
||||||
return "Vulkan";
|
return "Vulkan";
|
||||||
|
case ultramodern::renderer::GraphicsApi::Metal:
|
||||||
|
return "Metal";
|
||||||
default:
|
default:
|
||||||
return "[Unknown graphics API]";
|
return "[Unknown graphics API]";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue