![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
\inmodule QtQuick3D More...
#include <qssgrenderextensions.h>
Public Member Functions | |
| QSSGRhiResourceHandle () noexcept | |
| Constructs an invalid handle. | |
| ~QSSGRhiResourceHandle () | |
| Destroys the handle. | |
| QSSGRhiResourceHandle (const QSSGRhiResourceHandle &other) noexcept | |
| Constructs a copy of other. | |
| QSSGRhiResourceHandle & | operator= (const QSSGRhiResourceHandle &other) noexcept |
| Assigns other to this handle. | |
| QSSGRhiResourceHandle (QSSGRhiResourceHandle &&other) noexcept=default | |
| void | swap (QSSGRhiResourceHandle &other) noexcept |
| bool | isValid () const noexcept |
| QRhiTexture * | texture () const noexcept |
| QRhiBuffer * | buffer () const noexcept |
| QRhiRenderBuffer * | renderBuffer () const noexcept |
| quint64 | globalResourceId () const noexcept |
Friends | |
| class | QSSGRhiResourceHandlePrivate |
| bool | comparesEqual (const QSSGRhiResourceHandle &lhs, const QSSGRhiResourceHandle &rhs) noexcept |
\inmodule QtQuick3D
A non-owning handle to an RHI resource created by the renderer.
A QSSGRhiResourceHandle is returned by \l QSSGFrameData::getRhiResource(). It gives access to an RHI resource the renderer created, such as the QRhiTexture of a \l {QtQuick3D::ShaderImage}{ShaderImage}, the QRhiBuffer of a \l {QtQuick3D::ShaderStorageBuffer}{ShaderStorageBuffer}, a render result such as the depth texture of a View3D, or an attachment of a \l {QtQuick3D::RenderPass}{RenderPass}. Depending on the resource, either texture(), buffer() or renderBuffer() returns it.
Definition at line 36 of file qssgrenderextensions.h.
|
defaultnoexcept |
Constructs an invalid handle.
|
default |
Destroys the handle.
This does not affect the resource.
|
defaultnoexcept |
Constructs a copy of other.
|
defaultnoexcept |
|
nodiscardnoexcept |
Definition at line 154 of file qssgrhiresourcehandle.cpp.
|
nodiscardnoexcept |
This is not the \l QSSGResourceId of the scene resource. The scene resource keeps its QSSGResourceId when the renderer replaces the RHI resource behind it, while the replacement gets a new globalResourceId(). Unlike the address of the QRhiResource, a globalResourceId() is unique across all QRhi instances and is never given to another RHI resource.
The globalResourceId() is kept after the handle becomes invalid. To find out whether the resource was replaced, compare handles rather than ids, since a resource the renderer rebuilds in place keeps its globalResourceId().
Definition at line 190 of file qssgrhiresourcehandle.cpp.
|
nodiscardnoexcept |
true if the handle refers to a resource that the renderer has not retired. Definition at line 136 of file qssgrhiresourcehandle.cpp.
|
defaultnoexcept |
Assigns other to this handle.
|
nodiscardnoexcept |
A render buffer is returned for the depth-stencil attachment of a \l {QtQuick3D::RenderPass}{RenderPass} that does not sample its depth.
Definition at line 168 of file qssgrhiresourcehandle.cpp.
|
inlinenoexcept |
Definition at line 45 of file qssgrenderextensions.h.
|
nodiscardnoexcept |
Definition at line 145 of file qssgrhiresourcehandle.cpp.
|
friend |
Definition at line 54 of file qssgrenderextensions.h.
|
friend |
Definition at line 60 of file qssgrenderextensions.h.