3#include <vulkan/vulkan.hpp>
4#include <vulkan/vulkan_handles.hpp>
18 static auto create(
const std::shared_ptr<Context>& ctx)
25 static auto create_depth(
const std::shared_ptr<Context>& ctx)
30 ::vk::ImageView image_view,
31 ::vk::ImageUsageFlags image_usage)
Definition render_target.hpp:14
auto final_layout(const ::vk::ImageLayout &layout)
Definition render_target.hpp:49
static auto create(const std::shared_ptr< Context > &ctx) -> expected< std::shared_ptr< RenderTarget > >
Craete a RenderTarget object with all defaults for a colour target.
Definition render_target.cpp:7
::vk::ImageUsageFlags image_usage_
Definition render_target.hpp:68
auto format() const
Definition render_target.hpp:40
static auto create_depth(const std::shared_ptr< Context > &ctx) -> expected< std::shared_ptr< RenderTarget > >
Create e render target to be used as a depth target.
Definition render_target.cpp:60
::vk::Format format_
Definition render_target.hpp:63
auto usage() const
Definition render_target.hpp:51
::vk::ImageLayout final_layout_
Definition render_target.hpp:70
::vk::ImageAspectFlags aspect_
Definition render_target.hpp:71
auto resize(const std::shared_ptr< Context > &ctx, const math::Vec2f &new_size) -> expected< void >
Definition render_target.cpp:130
std::optional< vk::Image > image_
Definition render_target.hpp:65
auto final_layout() const
Definition render_target.hpp:48
::vk::SampleCountFlagBits sample_count_
Definition render_target.hpp:61
std::function< expected< void >()> transition_fn_
Definition render_target.hpp:56
::vk::ImageView view_
Definition render_target.hpp:66
auto size() const
Definition render_target.hpp:43
auto sample_count() const
Definition render_target.hpp:46
auto view(const ::vk::ImageView &view)
Definition render_target.hpp:38
auto format(const ::vk::Format &format)
Definition render_target.hpp:41
math::Vec2f size_
Definition render_target.hpp:59
auto view() const
Definition render_target.hpp:37
auto size(const math::Vec2f &size)
Definition render_target.hpp:44
Definition editor_scene.hpp:5
std::expected< T, Err > expected
Definition result.hpp:49
Definition vector.hpp:124