|
wren
Vulkan-based game engine
|
#include <render_target.hpp>

Public Member Functions | |
| auto | resize (const std::shared_ptr< Context > &ctx, const math::Vec2f &new_size) -> expected< void > |
| auto | view () const |
| auto | view (const ::vk::ImageView &view) |
| auto | format () const |
| auto | format (const ::vk::Format &format) |
| auto | size () const |
| auto | size (const math::Vec2f &size) |
| auto | sample_count () const |
| auto | final_layout () const |
| auto | final_layout (const ::vk::ImageLayout &layout) |
| auto | usage () const |
| auto | render_finished_semaphore () const |
Static Public Member Functions | |
| 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. | |
| 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. | |
| static auto | create (const math::Vec2f &size, ::vk::Format format, ::vk::SampleCountFlagBits sample_count, ::vk::ImageView image_view, ::vk::ImageUsageFlags image_usage) -> expected< std::shared_ptr< RenderTarget > > |
Private Member Functions | |
| RenderTarget ()=default | |
Private Attributes | |
| std::function< expected< void >(const RenderTarget *)> | transition_fn_ |
| math::Vec2f | size_ |
| ::vk::Semaphore | render_finished_semaphore_ |
| ::vk::SampleCountFlagBits | sample_count_ |
| ::vk::Format | format_ |
| std::optional< vk::Image > | image_ |
| ::vk::ImageView | view_ |
| ::vk::ImageUsageFlags | image_usage_ |
| ::vk::ImageLayout | final_layout_ = ::vk::ImageLayout::ePresentSrcKHR |
| ::vk::ImageAspectFlags | aspect_ |
|
privatedefault |

|
static |

|
static |
Craete a RenderTarget object with all defaults for a colour target.
| ctx | The full application context |


|
static |
Create e render target to be used as a depth target.
| ctx | the full application context |


|
inlinenodiscard |
|
inline |
|
inlinenodiscard |

|
inline |

|
inlinenodiscard |
| auto wren::RenderTarget::resize | ( | const std::shared_ptr< Context > & | ctx, |
| const math::Vec2f & | new_size ) -> expected< void > |


|
inlinenodiscard |

|
inlinenodiscard |

|
inline |

|
inlinenodiscard |
|
inlinenodiscard |

|
inline |

|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |