Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QSSGRenderExtensionHelpers Class Reference

\inmodule QtQuick3D More...

#include <qssgrenderhelpers.h>

+ Collaboration diagram for QSSGRenderExtensionHelpers:

Static Public Member Functions

static void registerRenderResult (const QSSGFrameData &frameData, QSSGExtensionId extension, QRhiTexture *texture)
 Register a render result, in form of a texture, for this extension.
 

Detailed Description

\inmodule QtQuick3D

Since
6.7

Class containing helper functions for the extensions.

Definition at line 146 of file qssgrenderhelpers.h.

Member Function Documentation

◆ registerRenderResult()

void QSSGRenderExtensionHelpers::registerRenderResult ( const QSSGFrameData & frameData,
QSSGExtensionId extension,
QRhiTexture * texture )
static

Register a render result, in form of a texture, for this extension.

Once a texture is registered, the extension can be uses as a {QtQuick3D::Texture::textureProvider}{texture provider} in QML.

Note
To ensure that the texture is available for renderables, for example to be used by a {QtQuick3D::Texture} item, textures should be registered during the \l QSSGRenderExtension::prepareData call of the extension.
Calling this function with a new texture will any previously registered texture.
A texture can be unregistered by registering a nullptr for this extension.

frameData

See also
{QtQuick3D::Texture::textureProvider}{textureProvider}

Definition at line 413 of file qssgrenderhelpers.cpp.

References QSSGRenderContextInterface::bufferManager(), QSSGFrameData::contextInterface(), and extension().

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: