Skip to content

Bring PS5 GTA6 to 120FPS with DLSS 5. An advanced Windows video player and capture enhancement tool featuring real-time preview for videos, images, and capture card sources. Combine AI-powered Super Resolution, DLSS5 image enhancement, and Frame Generation to deliver a next-generation visual experience.

C++
1.4 KB
Raw Blame
// List mode: the chain in pipeline order.
//
// Reordering is deliberately NOT offered here. The user's reason was concrete:
// beginners break the chain by dragging it. Only adding layers and toggling them
// is allowed; node mode (NodePage) is where free arrangement lives.
import QtQuick
import QtQuick.Layouts

ColumnLayout {
    id: root
    spacing: 6

    function addEffect(type) {
        const index = veyra.addEffect(type)
        if (index >= 0) selected = index
    }

    property int selected: -1
    onSelectedChanged: veyra.selectedNrLayer = selected

    Repeater {
        model: veyra.chain
        delegate: ChainNodeCard {
            Layout.fillWidth: true
            required property var modelData
            node: modelData
            selected: root.selected === modelData.index
            onToggleRequested: enabled => veyra.setEffectEnabled(modelData.index, enabled)
            onRemoveRequested: veyra.removeEffect(modelData.index)
            onSelectRequested: root.selected = modelData.index
        }
    }

    // A refused edit explains itself here rather than in a modal.
    Text {
        Layout.fillWidth: true
        Layout.topMargin: 6
        visible: !veyra.chainValid
        text: veyra.chainError
        color: Theme.err
        wrapMode: Text.WordWrap
        font.family: Theme.fontUi
        font.pixelSize: Theme.fsSmall
    }
}