aboutsummaryrefslogtreecommitdiff
path: root/core/src/Entrypoint/Backend_Metal.mm
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/Entrypoint/Backend_Metal.mm')
-rw-r--r--core/src/Entrypoint/Backend_Metal.mm18
1 files changed, 12 insertions, 6 deletions
diff --git a/core/src/Entrypoint/Backend_Metal.mm b/core/src/Entrypoint/Backend_Metal.mm
index a1f4993..276bef2 100644
--- a/core/src/Entrypoint/Backend_Metal.mm
+++ b/core/src/Entrypoint/Backend_Metal.mm
@@ -2,22 +2,27 @@
#if BUILD_CORE_WITH_METAL_BACKEND
-class MetalBackend : public RenderingBackend {
+class MetalBackend : public RenderingBackend
+{
public:
- MetalBackend() {
+ MetalBackend()
+ {
// TODO
}
- virtual ~MetalBackend() {
+ virtual ~MetalBackend()
+ {
// TODO
}
- virtual void RunUntilWindowClose(void (*windowContent)()) {
+ virtual void RunUntilWindowClose(void (*windowContent)())
+ {
// TODO
}
};
-std::unique_ptr<RenderingBackend> RenderingBackend::CreateMetalBackend() {
+std::unique_ptr<RenderingBackend> RenderingBackend::CreateMetalBackend()
+{
try {
return std::make_unique<MetalBackend>();
} catch (std::exception& e) {
@@ -27,7 +32,8 @@ std::unique_ptr<RenderingBackend> RenderingBackend::CreateMetalBackend() {
#else // ^^ BUILD_CORE_WITH_METAL_BACKEND | BUILD_CORE_WITH_METAL_BACKEND vv
-std::unique_ptr<RenderingBackend> RenderingBackend::CreateMetalBackend() {
+std::unique_ptr<RenderingBackend> RenderingBackend::CreateMetalBackend()
+{
return nullptr;
}