Attachment point. More...
#include <kanzi/core.ui/graphics2d/framebuffer.hpp>
Classes | |
| class | RenderbufferContainer |
| Container for renderbuffer information. More... | |
| class | TextureContainer |
| Container for weak texture reference. More... | |
Public Types | |
| using | storage_type |
| Internal storage type. | |
Public Member Functions | |
| AttachmentPoint ()=default | |
| Default constructor. | |
| AttachmentPoint (AttachmentPoint &&other) noexcept | |
| Move constructor. | |
| AttachmentPoint (const AttachmentPoint &)=delete | |
| AttachmentPoint (const Renderbuffer::CreateInfo &createInfo, string_view name) | |
| Constructor creating a renderbuffer. | |
| AttachmentPoint (const RenderbufferSharedPtr &renderbuffer) | |
| Constructor for an existing renderbuffer. | |
| AttachmentPoint (const TextureSharedPtr &texture, size_t faceIndex, size_t mipmapLevel) | |
| Constructor for referencing a texture. | |
| bool | empty () const |
| Indicates whether the attachment point is empty. | |
| RenderbufferSharedPtr | getAnyRenderbuffer () const |
| Gets a strong reference to any renderbuffer in this container. | |
| GraphicsFormat | getFormat () const |
| Gets the format of the attachment. | |
| size_t | getGPUMemoryUsage () const |
| Gets the GPU memory usage for this renderbuffer. | |
| size_t | getHeight () const |
| Gets the height of the attachment. | |
| RenderbufferContainer * | getRenderbufferContainer () |
| Gets the referenced renderbuffer container. | |
| const RenderbufferContainer * | getRenderbufferContainer () const |
| Gets the referenced renderbuffer container (const version). | |
| size_t | getSampleCount () const |
| Gets the sample count of the attachment. | |
| TextureSharedPtr | getSharedTexture () const |
| Gets a strong reference to any texture in this container. | |
| TextureContainer * | getTextureContainer () |
| Gets the texture container. | |
| const TextureContainer * | getTextureContainer () const |
| Gets the texture container (const version). | |
| RenderbufferWeakPtr | getWeakRenderbuffer () const |
| Gets the renderbuffer at the attachment point. | |
| size_t | getWidth () const |
| Gets the width of the attachment. | |
| bool | hasRenderbufferContainer () const |
| Indicates whether this attachment point holds a renderbuffer container. | |
| bool | hasTextureContainer () const |
| Indicates whether this attachment point holds a texture container. | |
| bool | hasWeakRenderbuffer () const |
| Indicates whether this attachment point holds a weak renderbuffer. | |
| bool | isTransient () const |
| Indicates whether or not the attachment point is transient. | |
| operator bool () const | |
| Bool operator. | |
| AttachmentPoint & | operator= (AttachmentPoint &&other) noexcept |
| Move operator. | |
| AttachmentPoint & | operator= (const AttachmentPoint &)=delete |
| bool | setRenderbuffer (const RenderbufferSharedPtr &renderbuffer) |
| Sets attached renderbuffer. | |
| bool | setRenderbufferCreateInfo (const Renderbuffer::CreateInfo &createInfo, string_view name) |
| Sets the renderbuffer create information. | |
| bool | setTexture (const TextureSharedPtr &texture, size_t faceIndex, size_t mipmapLevel) |
| Sets attached texture. | |
| bool | update (Renderer &renderer) |
| Update the attachment point contents. | |
Protected Attributes | |
| storage_type | m_storage |
| Internal storage for the attachment. | |
Attachment point.
Contains data about the attachment which may be owned by the attachment point construct, or be a weak reference to an external object.
Internal storage type.
|
explicitdefault |
Default constructor.
|
inlineexplicit |
Constructor creating a renderbuffer.
| createInfo | Renderbuffer create information. |
| name | Name of the renderbuffer. |
|
inlineexplicit |
Constructor for an existing renderbuffer.
| renderbuffer | An existing Renderbuffer. |
|
inlineexplicit |
Constructor for referencing a texture.
| texture | Reference to a Texture. |
| faceIndex | Attachment face index. |
| mipmapLevel | Attachment mipmap level. |
faceIndex and mipmapLevel parameters.
|
inlinenoexcept |
Move constructor.
| other | Source attachment point. |
|
delete |
|
inlinenoexcept |
Move operator.
| other | Source attachment point. |
|
delete |
| size_t kanzi::Framebuffer::AttachmentPoint::getSampleCount | ( | ) | const |
Gets the sample count of the attachment.
| GraphicsFormat kanzi::Framebuffer::AttachmentPoint::getFormat | ( | ) | const |
Gets the format of the attachment.
| size_t kanzi::Framebuffer::AttachmentPoint::getWidth | ( | ) | const |
Gets the width of the attachment.
| size_t kanzi::Framebuffer::AttachmentPoint::getHeight | ( | ) | const |
Gets the height of the attachment.
| bool kanzi::Framebuffer::AttachmentPoint::isTransient | ( | ) | const |
Indicates whether or not the attachment point is transient.
|
inline |
Indicates whether the attachment point is empty.
|
inline |
Indicates whether this attachment point holds a renderbuffer container.
|
inline |
Indicates whether this attachment point holds a weak renderbuffer.
|
inline |
Indicates whether this attachment point holds a texture container.
|
inline |
Gets the referenced renderbuffer container.
|
inline |
Gets the referenced renderbuffer container (const version).
|
inline |
Gets the renderbuffer at the attachment point.
|
inline |
|
inline |
Gets the texture container (const version).
|
inline |
Gets a strong reference to any renderbuffer in this container.
|
inline |
Gets a strong reference to any texture in this container.
|
inline |
Sets the renderbuffer create information.
| createInfo | Create info structure to set. |
| name | Name of the renderbuffer. |
|
inline |
Sets attached renderbuffer.
| renderbuffer | Renderbuffer to set. |
|
inline |
Sets attached texture.
| texture | Texture to set. |
| faceIndex | Attachment face index. |
| mipmapLevel | Mipmap level |
|
inline |
Gets the GPU memory usage for this renderbuffer.
This function will not return the GPU memory usage of weakly referenced textures.
Update the attachment point contents.
Only has effect on allocated renderbuffers. Owners of weak references handle updating themselves.
|
inline |
Bool operator.
Wraps the validity check.
|
protected |
Internal storage for the attachment.