#include <renderer.hpp>
◆ Renderer()
wren::Renderer::Renderer |
( |
const std::shared_ptr< Context > & | ctx | ) |
|
|
explicitprivate |
◆ add_target()
auto wren::Renderer::add_target |
( |
const std::string & | name, |
|
|
const std::shared_ptr< RenderTarget > & | target ) |
|
inline |
◆ begin_frame()
auto wren::Renderer::begin_frame |
( |
| ) |
-> expected<uint32_t> |
|
private |
◆ choose_swapchain_extent()
auto wren::Renderer::choose_swapchain_extent |
( |
const ::vk::SurfaceCapabilitiesKHR & | surface_capabilities | ) |
-> ::vk::Extent2D |
|
private |
◆ choose_swapchain_format()
auto wren::Renderer::choose_swapchain_format |
( |
const std::vector<::vk::SurfaceFormatKHR > & | formats | ) |
-> ::vk::SurfaceFormatKHR |
|
private |
◆ choose_swapchain_presentation_mode()
auto wren::Renderer::choose_swapchain_presentation_mode |
( |
const std::vector<::vk::PresentModeKHR > & | formats | ) |
-> ::vk::PresentModeKHR |
|
private |
◆ create()
◆ draw()
void wren::Renderer::draw |
( |
| ) |
|
◆ end_frame()
void wren::Renderer::end_frame |
( |
uint32_t | image_index | ) |
|
|
private |
◆ get_graph()
auto wren::Renderer::get_graph |
( |
| ) |
const |
|
inline |
◆ recreate_swapchain()
auto wren::Renderer::recreate_swapchain |
( |
| ) |
-> expected<void> |
|
private |
◆ render_targets()
auto wren::Renderer::render_targets |
( |
| ) |
const |
|
inline |
Get the swapchain's targets.
- Returns
- The Swapchain's render_targets
◆ set_graph_builder()
auto wren::Renderer::set_graph_builder |
( |
const GraphBuilder & | builder | ) |
|
|
inline |
◆ submit_command_buffer()
auto wren::Renderer::submit_command_buffer |
( |
const std::function< void(::vk::CommandBuffer &)> & | cmd_buf | ) |
-> expected<void> |
◆ swapchain_images_views()
auto wren::Renderer::swapchain_images_views |
( |
| ) |
const |
|
inline |
◆ command_pool_
::vk::CommandPool wren::Renderer::command_pool_ |
|
private |
◆ ctx_
std::shared_ptr<Context> wren::Renderer::ctx_ |
|
private |
◆ image_available
::vk::Semaphore wren::Renderer::image_available |
|
private |
◆ in_flight_fence
::vk::Fence wren::Renderer::in_flight_fence |
|
private |
◆ kSwapchainRendertargetName
constexpr std::string_view wren::Renderer::kSwapchainRendertargetName |
|
staticconstexprprivate |
◆ one_time_cmd_buffer
::vk::CommandBuffer wren::Renderer::one_time_cmd_buffer |
|
private |
◆ pipelines_
std::unordered_map<std::string, std::shared_ptr<Pipeline> > wren::Renderer::pipelines_ |
|
private |
◆ render_finished
::vk::Semaphore wren::Renderer::render_finished |
|
private |
◆ render_graph
Graph wren::Renderer::render_graph |
|
private |
◆ render_targets_
std::unordered_map<std::string, std::shared_ptr<RenderTarget> > wren::Renderer::render_targets_ |
|
private |
◆ swapchain_
::vk::SwapchainKHR wren::Renderer::swapchain_ |
|
private |
◆ swapchain_extent_
::vk::Extent2D wren::Renderer::swapchain_extent_ |
|
private |
◆ swapchain_image_format_
::vk::Format wren::Renderer::swapchain_image_format_ = ::vk::Format::eB8G8R8Srgb |
|
private |
◆ swapchain_image_views_
std::vector<::vk::ImageView> wren::Renderer::swapchain_image_views_ |
|
private |
◆ swapchain_images_
std::vector<::vk::Image> wren::Renderer::swapchain_images_ |
|
private |
The documentation for this class was generated from the following files: