Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. ShaderEffect Dependencies
Forum Updated to NodeBB v4.3 + New Features

ShaderEffect Dependencies

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 103 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    psysu
    wrote on last edited by
    #1

    Hello, i'm currently integrating a post-processing antialiasing technique to my Qt Application.

    The technique requires multiple-pass rendering. where each pass requires a texture of the previous pass.
    Below qml code is the structure of the rendering process.

    Item {
    
        Image {
            id: img
            ...
        }
    
        layer.enabled: true
        layer.effect: fx
    
        Component {
    
            id: fx
    
            ShaderEffect {
                id: D
                    
                source1: A
                source2: C
                
                ShaderEffect {
                    id: C
                    source: B
                }
                
                ShaderEffect {
                    id: B
                    source: A
                }
    
                ShaderEffect {
                   id: A
                   ...
                }
            }
        }
    
    }
    

    But when i do this the application is showing just black screen, i used renderdoc to debug the GPU pipeline state.
    From there what i found out was, only ShaderEffect D is bound but other ShaderEffect did not get executed.
    I think i'm doing a mistake with QML bindings, please help if you know what i'm doing wrong here.

    Thanks

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved