#include <render_target.hpp>
◆ RenderTarget()
wren::RenderTarget::RenderTarget |
( |
| ) |
|
|
privatedefault |
◆ create() [1/2]
auto wren::RenderTarget::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>> |
|
static |
◆ create() [2/2]
Craete a RenderTarget object with all defaults for a colour target.
- Parameters
-
ctx | The full application context |
◆ create_depth()
Create e render target to be used as a depth target.
- Parameters
-
ctx | the full application context |
- Returns
- On success a shared_ptr to the created depth RenderTarget or an error
◆ final_layout() [1/2]
auto wren::RenderTarget::final_layout |
( |
| ) |
const |
|
inline |
◆ final_layout() [2/2]
auto wren::RenderTarget::final_layout |
( |
const ::vk::ImageLayout & | layout | ) |
|
|
inline |
◆ format() [1/2]
auto wren::RenderTarget::format |
( |
| ) |
const |
|
inline |
◆ format() [2/2]
auto wren::RenderTarget::format |
( |
const ::vk::Format & | format | ) |
|
|
inline |
◆ resize()
◆ sample_count()
auto wren::RenderTarget::sample_count |
( |
| ) |
const |
|
inline |
◆ size() [1/2]
auto wren::RenderTarget::size |
( |
| ) |
const |
|
inline |
◆ size() [2/2]
auto wren::RenderTarget::size |
( |
const math::Vec2f & | size | ) |
|
|
inline |
◆ usage()
auto wren::RenderTarget::usage |
( |
| ) |
const |
|
inline |
◆ view() [1/2]
auto wren::RenderTarget::view |
( |
| ) |
const |
|
inline |
◆ view() [2/2]
auto wren::RenderTarget::view |
( |
const ::vk::ImageView & | view | ) |
|
|
inline |
◆ aspect_
::vk::ImageAspectFlags wren::RenderTarget::aspect_ |
|
private |
◆ final_layout_
::vk::ImageLayout wren::RenderTarget::final_layout_ = ::vk::ImageLayout::ePresentSrcKHR |
|
private |
◆ format_
::vk::Format wren::RenderTarget::format_ |
|
private |
◆ image_
std::optional<vk::Image> wren::RenderTarget::image_ |
|
private |
◆ image_usage_
::vk::ImageUsageFlags wren::RenderTarget::image_usage_ |
|
private |
◆ sample_count_
::vk::SampleCountFlagBits wren::RenderTarget::sample_count_ |
|
private |
◆ size_
◆ transition_fn_
std::function<expected<void>()> wren::RenderTarget::transition_fn_ |
|
private |
◆ view_
::vk::ImageView wren::RenderTarget::view_ |
|
private |
The documentation for this class was generated from the following files: