Nebula
Loading...
Searching...
No Matches
swapchain.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
9//------------------------------------------------------------------------------
10#include "coregraphics/config.h"
12#include "ids/idallocator.h"
13
14namespace CoreGraphics
15{
16
18
26
30void DestroySwapchain(const SwapchainId id);
31
33void SwapchainSwap(const SwapchainId id);
39void SwapchainCopy(const SwapchainId id, const CoreGraphics::CmdBufferId cmdBuf, const CoreGraphics::TextureId source);
41void SwapchainPresent(const SwapchainId id);
42
43} // 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:302
void SwapchainPresent(const SwapchainId id)
Present.
Definition vkswapchain.cc:383
QueueType
Definition config.h:40
@ ComputeQueueType
Definition config.h:42
SwapchainId CreateSwapchain(const SwapchainCreateInfo &info)
Create swapchain.
Definition vkswapchain.cc:25
void SwapchainSwap(const SwapchainId id)
Swap buffers.
Definition vkswapchain.cc:270
CoreGraphics::CmdBufferId SwapchainAllocateCmds(const SwapchainId id)
Allocate command buffer for swapchain operations.
Definition vkswapchain.cc:311
void DestroySwapchain(const SwapchainId id)
Destroy swapchain.
Definition vkswapchain.cc:249
void SwapchainCopy(const SwapchainId id, const CoreGraphics::CmdBufferId cmdBuf, const CoreGraphics::TextureId source)
Copy to current backbuffer (call after swap)
Definition vkswapchain.cc:324
Compile time configuration options for the CoreGraphics subsystem.
Definition commandbuffer.h:155
Definition swapchain.h:20
CoreGraphics::DisplayMode displayMode
Definition swapchain.h:21
bool vsync
Definition swapchain.h:22
GLFWwindow * window
Definition swapchain.h:23
CoreGraphics::QueueType preferredQueue
Definition swapchain.h:24
Definition swapchain.h:17
texture type
Definition texture.h:25