Nebula
Loading...
Searching...
No Matches
swapchain.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
9//------------------------------------------------------------------------------
10#include "coregraphics/config.h"
14#include "ids/idallocator.h"
15
16namespace CoreGraphics
17{
18
20
29
33void DestroySwapchain(const SwapchainId id);
34
36void SwapchainSwap(const SwapchainId id);
42void SwapchainCopy(const SwapchainId id, const CoreGraphics::CmdBufferId cmdBuf, const CoreGraphics::TextureId source);
44void SwapchainPresent(const SwapchainId id);
49
50} // namespace CoreGraphics
Describe a fullscreen display mode or window dimensions.
Definition displaymode.h:19
#define ID_24_8_TYPE(x)
Definition id.h:132
Acceleration structures are used to enable ray tracing on the GPU by dividing the scene into a BVH.
Definition accelerationstructure.h:24
CoreGraphics::QueueType SwapchainGetQueueType(const SwapchainId id)
Get queue to use for swapchain.
Definition vkswapchain.cc:383
CoreGraphics::SemaphoreId SwapchainGetCurrentPresentSemaphore(const SwapchainId id)
Get the present fence for the current backbuffer.
Definition vkswapchain.cc:547
void SwapchainPresent(const SwapchainId id)
Present.
Definition vkswapchain.cc:485
QueueType
Definition config.h:40
@ GraphicsQueueType
Definition config.h:41
CoreGraphics::SemaphoreId SwapchainGetCurrentDisplaySemaphore(const SwapchainId id)
Get present semaphore for the current backbuffer.
Definition vkswapchain.cc:538
SwapchainId CreateSwapchain(const SwapchainCreateInfo &info)
Create swapchain.
Definition vkswapchain.cc:54
void SwapchainSwap(const SwapchainId id)
Swap buffers.
Definition vkswapchain.cc:355
CoreGraphics::CmdBufferId SwapchainAllocateCmds(const SwapchainId id)
Allocate command buffer for swapchain operations.
Definition vkswapchain.cc:392
void DestroySwapchain(const SwapchainId id)
Destroy swapchain.
Definition vkswapchain.cc:326
void SwapchainCopy(const SwapchainId id, const CoreGraphics::CmdBufferId cmdBuf, const CoreGraphics::TextureId source)
Copy to current backbuffer (call after swap).
Definition vkswapchain.cc:406
Compile time configuration options for the CoreGraphics subsystem.
Definition commandbuffer.h:175
Definition semaphore.h:23
Definition swapchain.h:22
CoreGraphics::DisplayMode displayMode
Definition swapchain.h:23
CoreGraphics::SwapchainId oldSwapchain
Definition swapchain.h:27
bool vsync
Definition swapchain.h:24
GLFWwindow * window
Definition swapchain.h:25
CoreGraphics::QueueType preferredQueue
Definition swapchain.h:26
Definition swapchain.h:19
texture type
Definition texture.h:25