Container for renderbuffer information. More...
#include <kanzi/core.ui/graphics2d/framebuffer.hpp>
Public Member Functions | |
| GraphicsFormat | getFormat () const |
| Gets the desired format from the create info. | |
| size_t | getGPUMemoryUsage () const |
| Gets the GPU memory usage for the renderbuffer. | |
| size_t | getHeight () const |
| Gets the desired height from the create info. | |
| RenderbufferSharedPtr | getRenderbuffer () const |
| Gets a strong reference to the contained renderbuffer. | |
| Renderbuffer * | getRenderbufferPointer () const |
| Gets the contained renderbuffer. | |
| size_t | getSampleCount () const |
| Gets the desired sample count from the create info. | |
| size_t | getWidth () const |
| Gets the desired width from the create info. | |
| bool | isDirty () const |
| Indicates whether or not the container is dirty and renderbuffer recreation is required. | |
| bool | isTransient () const |
| Gets the transient flag. | |
| bool | matches (const Renderbuffer::CreateInfo &createInfo) const |
| Indicates whether the contained create information matches given create information. | |
| RenderbufferContainer & | operator= (const RenderbufferContainer &)=delete |
| RenderbufferContainer & | operator= (RenderbufferContainer &&other) noexcept |
| Move operator. | |
| RenderbufferContainer ()=default | |
| Default constructor. | |
| RenderbufferContainer (const Renderbuffer::CreateInfo &createInfo, string_view name) | |
| Constructor. | |
| RenderbufferContainer (const RenderbufferContainer &)=delete | |
| RenderbufferContainer (RenderbufferContainer &&other) noexcept | |
| Move constructor. | |
| bool | setCreateInfo (const Renderbuffer::CreateInfo &createInfo, string_view name) |
| Sets the create information. | |
| bool | update (Renderer &renderer) |
| Update the renderbuffer. | |
Protected Attributes | |
| Renderbuffer::CreateInfo | m_createInfo |
| Create information for the renderbuffer. | |
| bool | m_dirty |
| Flag for indicating the renderbuffer create information has changed and an update is needed. | |
| string | m_name |
| Name for the owned renderbuffer when it's created. | |
| RenderbufferSharedPtr | m_renderbuffer |
| Owned renderbuffer. | |
Container for renderbuffer information.
Used for storing the create information for later creation of the renderbuffer.
|
explicitdefault |
Default constructor.
|
inlineexplicit |
Constructor.
| createInfo | Create info structure to use for constructing the renderbuffer later. |
| name | Name of the renderbuffer. |
|
inlinenoexcept |
Move constructor.
| other | Source container. |
|
delete |
|
inlinenoexcept |
Move operator.
| other | Source container. |
|
delete |
| bool kanzi::Framebuffer::AttachmentPoint::RenderbufferContainer::matches | ( | const Renderbuffer::CreateInfo & | createInfo | ) | const |
Indicates whether the contained create information matches given create information.
| createInfo | Create info structure to check. |
| bool kanzi::Framebuffer::AttachmentPoint::RenderbufferContainer::setCreateInfo | ( | const Renderbuffer::CreateInfo & | createInfo, |
| string_view | name ) |
Sets the create information.
This function automatically updates the dirty flag if the structures are not matching.
| createInfo | Create info structure to set. |
| name | Name of the renderbuffer. |
Update the renderbuffer.
Creates the renderbuffer if it's missing or not matching with the contained CreateInfo structure.
|
inline |
Gets a strong reference to the contained renderbuffer.
|
inline |
Gets the contained renderbuffer.
|
inline |
Gets the desired sample count from the create info.
|
inline |
Gets the desired format from the create info.
|
inline |
Gets the desired width from the create info.
|
inline |
Gets the desired height from the create info.
|
inline |
Gets the transient flag.
|
inline |
Gets the GPU memory usage for the renderbuffer.
If the renderbuffer has not been allocated, returns 0 bytes. If the container is dirty and has not been updated, returns GPU memory usage of the current renderbuffer.
|
inline |
Indicates whether or not the container is dirty and renderbuffer recreation is required.
|
protected |
Create information for the renderbuffer.
|
protected |
Name for the owned renderbuffer when it's created.
|
protected |
Owned renderbuffer.
|
protected |
Flag for indicating the renderbuffer create information has changed and an update is needed.