![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qrhivulkan_p.h>
Public Member Functions | |
| QVkRenderBuffer (QRhiImplementation *rhi, Type typetype, const QSize &pixelSize, int sampleCount, Flags flagsflags, QRhiTexture::Format backingFormatHint) | |
| ~QVkRenderBuffer () | |
| void | destroy () override |
| Releases (or requests deferred releasing of) the underlying native graphics resources. | |
| bool | create () override |
| Creates the corresponding native graphics resources. | |
| QRhiTexture::Format | backingFormat () const override |
| Public Member Functions inherited from QRhiRenderBuffer | |
| QRhiResource::Type | resourceType () const override |
| Type | type () const |
| void | setType (Type tt) |
| Sets the type to t. | |
| QSize | pixelSize () const |
| void | setPixelSize (const QSize &sz) |
| Sets the size (in pixels) to sz. | |
| int | sampleCount () const |
| void | setSampleCount (int ss) |
| Sets the sample count to s. | |
| Flags | flags () const |
| void | setFlags (Flags ff) |
| Sets the flags to f. | |
| virtual bool | createFrom (NativeRenderBuffer srcsrc) |
| Similar to create() except that no new native renderbuffer objects are created. | |
| Public Member Functions inherited from QRhiResource | |
| virtual | ~QRhiResource () |
| Destructor. | |
| void | deleteLater () |
| When called without a frame being recorded, this function is equivalent to deleting the object. | |
| QByteArray | name () const |
| void | setName (const QByteArray &namename) |
| Sets a name for the object. | |
| quint64 | globalResourceId () const |
| QRhi * | rhi () const |
Public Attributes | |
| VkDeviceMemory | memory = VK_NULL_HANDLE |
| VkImage | image = VK_NULL_HANDLE |
| VkImageView | imageView = VK_NULL_HANDLE |
| VkSampleCountFlagBits | samples |
| QVkTexture * | backingTexture = nullptr |
| VkFormat | vkformat |
| int | lastActiveFrameSlot = -1 |
| uint | generation = 0 |
Friends | |
| class | QRhiVulkan |
Definition at line 81 of file qrhivulkan_p.h.
| QVkRenderBuffer::QVkRenderBuffer | ( | QRhiImplementation * | rhi, |
| Type | type, | ||
| const QSize & | pixelSize, | ||
| int | sampleCount, | ||
| Flags | flags, | ||
| QRhiTexture::Format | backingFormatHint ) |
Definition at line 7927 of file qrhivulkan.cpp.
References QVkRenderBuffer().
Referenced by QVkRenderBuffer().
| QVkRenderBuffer::~QVkRenderBuffer | ( | ) |
Definition at line 7934 of file qrhivulkan.cpp.
References backingTexture, and destroy().
|
overridevirtual |
Implements QRhiRenderBuffer.
Definition at line 8028 of file qrhivulkan.cpp.
|
overridevirtual |
Creates the corresponding native graphics resources.
If there are already resources present due to an earlier create() with no corresponding destroy(), then destroy() is called implicitly first.
true when successful, false when a graphics operation failed. Regardless of the return value, calling destroy() is always safe. Implements QRhiRenderBuffer.
Definition at line 7970 of file qrhivulkan.cpp.
References backingTexture, QVkTexture::create(), destroy(), generation, and lastActiveFrameSlot.
|
overridevirtual |
Releases (or requests deferred releasing of) the underlying native graphics resources.
Safe to call multiple times, subsequent invocations will be a no-op then.
Once destroy() is called, the QRhiResource instance can be reused, by calling create() again. That will then result in creating new native graphics resources underneath.
The QRhiResource destructor also performs the same task, so calling this function is not necessary before deleting a QRhiResource.
Implements QRhiResource.
Definition at line 7940 of file qrhivulkan.cpp.
References backingTexture, QVkTexture::destroy(), QRhiVulkan::DeferredReleaseEntry::lastActiveFrameSlot, lastActiveFrameSlot, QVkTexture::lastActiveFrameSlot, QRhiVulkan::DeferredReleaseEntry::RenderBuffer, and QRhiVulkan::DeferredReleaseEntry::type.
Referenced by ~QVkRenderBuffer(), and create().
|
friend |
Definition at line 99 of file qrhivulkan_p.h.
| QVkTexture* QVkRenderBuffer::backingTexture = nullptr |
Definition at line 95 of file qrhivulkan_p.h.
Referenced by ~QVkRenderBuffer(), create(), QVkTextureRenderTarget::create(), and destroy().
| uint QVkRenderBuffer::generation = 0 |
Definition at line 98 of file qrhivulkan_p.h.
Referenced by create().
| VkImage QVkRenderBuffer::image = VK_NULL_HANDLE |
Definition at line 92 of file qrhivulkan_p.h.
| VkImageView QVkRenderBuffer::imageView = VK_NULL_HANDLE |
Definition at line 93 of file qrhivulkan_p.h.
| int QVkRenderBuffer::lastActiveFrameSlot = -1 |
Definition at line 97 of file qrhivulkan_p.h.
Referenced by QRhiVulkan::activateTextureRenderTarget(), QRhiVulkan::beginFrame(), create(), and destroy().
| VkDeviceMemory QVkRenderBuffer::memory = VK_NULL_HANDLE |
Definition at line 91 of file qrhivulkan_p.h.
| VkSampleCountFlagBits QVkRenderBuffer::samples |
Definition at line 94 of file qrhivulkan_p.h.
| VkFormat QVkRenderBuffer::vkformat |
Definition at line 96 of file qrhivulkan_p.h.