CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
MTSwapchain.hpp
Go to the documentation of this file.
1//
2// CeresEngine - A game development framework
3//
4// Created by Rogiel Sulzbach.
5// Copyright (c) 2018-2022 Rogiel Sulzbach. All rights reserved.
6//
7
8#pragma once
9
10#include "Metal.hpp"
11
14
16
17namespace CeresEngine {
18
50
51} // namespace CeresEngine
#define CE_EXPLICIT_FALSE
Definition Macros.hpp:416
#define CE_MT_HANDLE(T)
Definition Metal.hpp:20
A retain-release type of smart pointer.
Definition SmartPtr.hpp:132
GPUDevice & device
The owning device this object was created from.
Definition Common.hpp:55
Definition GPUSwapchain.hpp:118
Definition Metal.hpp:124
Metal RenderAPI swapchain object.
Definition MTSwapchain.hpp:20
const GPUSwapchainDescriptor mDescriptor
A structure that describes the swapchain and it's properties.
Definition MTSwapchain.hpp:26
MTSwapchain(MTDevicePtr device, const GPUSwapchainDescriptor &descriptor)
Creates a new MTSwapchain object.
GPUImagePtr nextRenderImage() override
void * CAMetalDrawableType
Definition MTSwapchain.hpp:22
void present() override
Presents a image from the getSwapchain. The command buffer that signals.
CAMetalDrawableType mDrawable
The Metal API swapchain object.
Definition MTSwapchain.hpp:29
~MTSwapchain() final
Destroys the MTSwapchain object.
const Descriptor & descriptor
A structure that describes the object and it's properties.
Definition Common.hpp:69
Definition Application.hpp:19
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25
Swapchain descriptor structure.
Definition GPUSwapchain.hpp:50