BufferInputSection.qml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // Copyright (C) 2021 The Qt Company Ltd.
  2. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
  3. import QtQuick 2.15
  4. import QtQuick.Layouts 1.15
  5. import HelperWidgets 2.0
  6. import StudioTheme 1.0 as StudioTheme
  7. Section {
  8. caption: qsTr("Buffer Input")
  9. width: parent.width
  10. SectionLayout {
  11. PropertyLabel {
  12. text: qsTr("Buffer")
  13. tooltip: qsTr("Sets input buffer for a pass.")
  14. }
  15. SecondColumnLayout {
  16. ItemFilterComboBox {
  17. typeFilter: "QtQuick3D.Buffer"
  18. backendValue: backendValues.buffer
  19. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  20. + StudioTheme.Values.actionIndicatorWidth
  21. }
  22. ExpandingSpacer {}
  23. }
  24. PropertyLabel {
  25. text: qsTr("Parameter")
  26. tooltip: qsTr("Sets buffer input buffer name in the shader.")
  27. }
  28. SecondColumnLayout {
  29. LineEdit {
  30. backendValue: backendValues.param
  31. showTranslateCheckBox: false
  32. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  33. + StudioTheme.Values.actionIndicatorWidth
  34. width: implicitWidth
  35. }
  36. ExpandingSpacer {}
  37. }
  38. }
  39. }