The Renderer class provides a rendering context for a graphical application.
More...
#include <candlewick/core/Renderer.h>
The Renderer class provides a rendering context for a graphical application.
- See also
- Scene
-
Device
-
Mesh
◆ Renderer() [1/3]
candlewick::Renderer::Renderer |
( |
NoInitT | | ) |
|
|
inline |
◆ Renderer() [2/3]
candlewick::Renderer::Renderer |
( |
Device && | device, |
|
|
Window && | window ) |
Constructor without a depth format.
◆ Renderer() [3/3]
candlewick::Renderer::Renderer |
( |
Device && | device, |
|
|
Window && | window, |
|
|
SDL_GPUTextureFormat | suggested_depth_format ) |
Constructor with a depth format. This will create a depth texture.
◆ ~Renderer()
candlewick::Renderer::~Renderer |
( |
| ) |
|
|
inlinenoexcept |
◆ acquireCommandBuffer()
CommandBuffer candlewick::Renderer::acquireCommandBuffer |
( |
| ) |
const |
|
inline |
Acquire the command buffer, starting a frame.
◆ acquireSwapchain()
bool candlewick::Renderer::acquireSwapchain |
( |
CommandBuffer & | command_buffer | ) |
|
Acquire GPU swapchain.
- Warning
- This can only be called from the main thread (see SDL docs for the meaning of "main thread").
◆ createDepthTexture()
void candlewick::Renderer::createDepthTexture |
( |
SDL_GPUTextureFormat | suggested_depth_format | ) |
|
◆ depthFormat()
SDL_GPUTextureFormat candlewick::Renderer::depthFormat |
( |
| ) |
const |
|
inline |
◆ destroy()
void candlewick::Renderer::destroy |
( |
| ) |
|
|
noexcept |
◆ getSwapchainTextureFormat()
SDL_GPUTextureFormat candlewick::Renderer::getSwapchainTextureFormat |
( |
| ) |
const |
|
inline |
◆ hasDepthTexture()
bool candlewick::Renderer::hasDepthTexture |
( |
| ) |
const |
|
inline |
Check if a depth texture was created.
◆ initialized()
bool candlewick::Renderer::initialized |
( |
| ) |
const |
|
inline |
◆ waitAndAcquireSwapchain()
bool candlewick::Renderer::waitAndAcquireSwapchain |
( |
CommandBuffer & | command_buffer | ) |
|
◆ waitForSwapchain()
bool candlewick::Renderer::waitForSwapchain |
( |
| ) |
|
|
inline |
◆ depth_texture
◆ device
Device candlewick::Renderer::device |
◆ swapchain
SDL_GPUTexture* candlewick::Renderer::swapchain |
◆ window
Window candlewick::Renderer::window |
The documentation for this struct was generated from the following file: