Class RenderTarget

Inheritance Relationships

Derived Type

Class Documentation

class RenderTarget

Abstract render target interface.

Framebuffer with color and optional depth attachments.

Subclassed by portal::renderer::vulkan::VulkanRenderTarget

Public Functions

virtual ~RenderTarget() = default
virtual bool resize(size_t width, size_t height, bool force_recreate) = 0

Resizes render target.

virtual size_t get_width() const = 0

Gets render target width.

virtual size_t get_height() const = 0

Gets render target height.

virtual glm::uvec4 get_viewport_bounds() const = 0
virtual size_t get_color_attachment_count() const = 0

Gets color attachment count.

virtual std::span<const ImageFormat> get_color_formats() const = 0
virtual bool has_depth_attachment() const = 0

Checks if render target has depth attachment.

virtual const RenderTargetProperties &get_properties() const = 0

Gets render target properties.

virtual size_t get_color_images_count() const = 0
virtual Reference<Image> get_image(size_t attachment_index) = 0
virtual bool has_depth_image() const = 0
virtual Reference<Image> get_depth_image() const = 0