In questa pagina

RenderOutputProvider QML Type

Utilizzato come ponte per accedere alle texture fornite nei pass. Maggiori informazioni...

Import Statement: import QtQuick3D.Helpers
Since: Qt 6.11
Inherits:

TextureProviderExtension

Proprietà

Descrizione dettagliata

Questo tipo viene utilizzato per fornire texture generate dai passaggi nella pipeline di rendering.

Un esempio di quando ciò risulta utile è quando si desidera accedere alla texture di profondità generata dal ZPrePass, oppure alla texture di occlusione ambientale generata dal passaggio SSAO. Questo tipo può essere utilizzato per accedere a queste texture generate e utilizzarle nei materiali o negli effetti.

Texture {
    textureProvider: RenderOutputProvider {
        // Specify the pass buffer texture you want to access
        textureSource: RenderOutputProvider.DepthTexture
    }
}

Vedi anche QQuick3DTextureProviderExtension e QSSGRenderExtension.

Documentazione delle proprietà

attachmentSelector : enumeration

Seleziona quale variante cromatica dell'RenderPass, definito dall'utente, visualizzare come texture. Rilevante solo quando l'opzione " textureSource " è impostata su " UserPassTexture".

CostanteDescrizione
RenderOutputProvider.Attachment0Utilizza l'allegato colore 0 (impostazione predefinita).
RenderOutputProvider.Attachment1Utilizza l'attaccamento di colore 1.
RenderOutputProvider.Attachment2Utilizza l'allegato di colore 2.
RenderOutputProvider.Attachment3Utilizza l'allegato colore 3.

Vedi anche renderPass e textureSource.

renderPass : RenderPass

RenderPass, i cui allegati in uscita verranno esposti come texture. L'impostazione di questa proprietà imposta automaticamente textureSource su UserPassTexture. Utilizzare attachmentSelector per scegliere quale allegato di colore del passaggio esporre.

Vedi anche attachmentSelector, textureSource e RenderPass.

textureSource : enumeration

Questa proprietà indica quale texture del buffer di passaggio deve essere visualizzata.

CostanteDescrizione
RenderOutputProvider.NoneNon è selezionata alcuna fonte di texture.
RenderOutputProvider.UserPassTextureAccede a un allegato di colore da un ` RenderPass` definito dall'utente. Utilizzare le proprietà ` renderPass ` e ` attachmentSelector ` per specificare quale pass e quale allegato utilizzare.
RenderOutputProvider.AoTextureLa texture di occlusione ambientale creata dal pass SSAO di QtQuick3D.
RenderOutputProvider.DepthTextureLa texture di profondità creata dal pre-pass di profondità di QtQuick3D.
RenderOutputProvider.ScreenTextureLa texture contenente la scena renderizzata.
RenderOutputProvider.NormalTextureLa texture delle normali nello spazio mondiale creata dal pre-pass delle normali di QtQuick3D.
RenderOutputProvider.MotionVectorTextureLa texture del vettore di movimento creata dal passaggio del vettore di movimento di QtQuick3D.

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.