ACMX 2.139.0
Dual-Backend Real-Time GPU Video Synthesis
Loading...
Searching...
No Matches
ShaderDialog Class Reference

New-shader dialog with optional starter template content. More...

#include <shader.hpp>

Inheritance diagram for ShaderDialog:

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

Detailed Description

New-shader dialog with optional starter template content.

Definition at line 24 of file shader.hpp.

Constructor & Destructor Documentation

◆ ShaderDialog()

ShaderDialog::ShaderDialog ( acmx2::Backend backend,
QWidget * parent = nullptr )
explicit

Definition at line 10 of file shader.cpp.

References backend, and init().

Member Function Documentation

◆ createShaderFile()

bool ShaderDialog::createShaderFile ( const QString & shaderName,
bool includeDefaultCode,
bool createCacheShader,
bool createComputeShader )
private

Definition at line 376 of file shader.cpp.

References acmx2::Acmxvk, and backend.

Referenced by onOkButtonClicked().

◆ init()

◆ onCancelButtonClicked

void ShaderDialog::onCancelButtonClicked ( )
privateslot

Definition at line 138 of file shader.cpp.

Referenced by init().

◆ onOkButtonClicked

◆ setShaderPath()

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().

Member Data Documentation

◆ backend

acmx2::Backend ShaderDialog::backend
private

Definition at line 40 of file shader.hpp.

Referenced by createShaderFile(), init(), onOkButtonClicked(), and ShaderDialog().

◆ cacheShaderCheckBox

QCheckBox* ShaderDialog::cacheShaderCheckBox
private

Definition at line 37 of file shader.hpp.

Referenced by init(), and onOkButtonClicked().

◆ cancelButton

QPushButton* ShaderDialog::cancelButton
private

Definition at line 35 of file shader.hpp.

Referenced by init().

◆ defaultCodeCheckBox

QCheckBox* ShaderDialog::defaultCodeCheckBox
private

Definition at line 36 of file shader.hpp.

Referenced by init(), and onOkButtonClicked().

◆ okButton

QPushButton* ShaderDialog::okButton
private

Definition at line 34 of file shader.hpp.

Referenced by init().

◆ shaderNameEdit

QLineEdit* ShaderDialog::shaderNameEdit
private

Definition at line 33 of file shader.hpp.

Referenced by init(), and onOkButtonClicked().

◆ shaderPath

QString ShaderDialog::shaderPath
private

Definition at line 39 of file shader.hpp.

Referenced by onOkButtonClicked(), and setShaderPath().

◆ shaderTypeComboBox

QComboBox* ShaderDialog::shaderTypeComboBox
private

Definition at line 38 of file shader.hpp.

Referenced by init(), and onOkButtonClicked().


The documentation for this class was generated from the following files: