New-shader dialog with optional starter template content. More...
#include <shader.hpp>
Public Member Functions | |
| void | setShaderPath (const QString &path) |
| Set output directory used for generated shader files. | |
| ShaderDialog (acmx2::Backend backend, QWidget *parent=nullptr) | |
Private Slots | |
| void | onCancelButtonClicked () |
| void | onOkButtonClicked () |
Private Member Functions | |
| bool | createShaderFile (const QString &shaderName, bool includeDefaultCode, bool createCacheShader, bool createComputeShader) |
| void | init () |
Private Attributes | |
| acmx2::Backend | backend |
| QCheckBox * | cacheShaderCheckBox |
| QPushButton * | cancelButton |
| QCheckBox * | defaultCodeCheckBox |
| QPushButton * | okButton |
| QLineEdit * | shaderNameEdit |
| QString | shaderPath |
| QComboBox * | shaderTypeComboBox |
New-shader dialog with optional starter template content.
Definition at line 24 of file shader.hpp.
|
explicit |
Definition at line 10 of file shader.cpp.
|
private |
Definition at line 376 of file shader.cpp.
References acmx2::Acmxvk, and backend.
Referenced by onOkButtonClicked().
|
private |
Definition at line 12 of file shader.cpp.
References acmx2::Acmxvk, acmx2::applyCustomStyleIfEnabled(), backend, cacheShaderCheckBox, cancelButton, defaultCodeCheckBox, okButton, onCancelButtonClicked(), onOkButtonClicked(), shaderNameEdit, and shaderTypeComboBox.
Referenced by ShaderDialog().
|
privateslot |
Definition at line 138 of file shader.cpp.
Referenced by init().
|
privateslot |
Definition at line 61 of file shader.cpp.
References acmx2::Acmxvk, acmx2::append_shader_manifest(), backend, cacheShaderCheckBox, acmx2::create_acmxvk_source_manifest_for_shaders(), createShaderFile(), defaultCodeCheckBox, acmx2::load_shader_manifest(), shaderNameEdit, shaderPath, and shaderTypeComboBox.
Referenced by init().
| void ShaderDialog::setShaderPath | ( | const QString & | path | ) |
Set output directory used for generated shader files.
Definition at line 136 of file shader.cpp.
References shaderPath.
Referenced by MainWindow::newShader().
|
private |
Definition at line 40 of file shader.hpp.
Referenced by createShaderFile(), init(), onOkButtonClicked(), and ShaderDialog().
|
private |
Definition at line 37 of file shader.hpp.
Referenced by init(), and onOkButtonClicked().
|
private |
Definition at line 35 of file shader.hpp.
Referenced by init().
|
private |
Definition at line 36 of file shader.hpp.
Referenced by init(), and onOkButtonClicked().
|
private |
Definition at line 34 of file shader.hpp.
Referenced by init().
|
private |
Definition at line 33 of file shader.hpp.
Referenced by init(), and onOkButtonClicked().
|
private |
Definition at line 39 of file shader.hpp.
Referenced by onOkButtonClicked(), and setShaderPath().
|
private |
Definition at line 38 of file shader.hpp.
Referenced by init(), and onOkButtonClicked().