Namespaces | |
| namespace | audio |
| namespace | ipc |
Classes | |
| struct | AcmxvkSourceManifestResult |
| struct | CustomStylePalette |
| struct | CustomUniformDefinition |
Enumerations | |
| enum class | Backend { Acmx2 , Acmxvk } |
| enum class | ShaderLibraryType { Source , Runtime } |
| enum class | ShaderManifestFormat { Json , Text } |
Functions | |
| bool | append_shader_manifest (const QString &directory, const QString &shader, QString &error) |
| Add one shader to the preferred manifest if it is not already present. | |
| void | applyCustomStyleIfEnabled (QWidget *widget) |
| std::optional< Backend > | backend_from_id (const QString &value) |
| QString | backend_id (Backend backend) |
| QString | backend_name (Backend backend) |
| QString | backend_settings_key (Backend backend, const QString &setting) |
| QString | buildStyleSheet (const CustomStylePalette &p) |
| bool | create_acmxvk_source_manifest (const QString &rootDirectory, const QString &outputPath, AcmxvkSourceManifestResult &result, QString &error) |
| Scan an ACMXVK source tree and atomically generate its library.json. | |
| bool | create_acmxvk_source_manifest_for_shaders (const QString &rootDirectory, const QStringList &shaderFiles, const QString &outputPath, AcmxvkSourceManifestResult &result, QString &error) |
| Generate a source manifest from an explicit subset of files below root. | |
| static bool | create_acmxvk_source_manifest_impl (const QString &rootDirectory, const QString &requestedOutputPath, const QStringList *includedShaders, AcmxvkSourceManifestResult &result, QString &error) |
| bool | create_shader_manifest (const QString &directory, ShaderManifestFormat format, const QStringList &shaders, QString &error) |
| Create a new manifest in the requested format. | |
| bool | custom_uniform_metadata_matches (const QString &leftDirectory, const QString &rightDirectory, bool &matches, QString &error) |
| Compare two manifests' custom-uniform ABI and numeric metadata. | |
| QString | default_backend_executable (Backend backend) |
| QString | defaultCustomStyleSheet () |
| bool | isCustomStyleEnabled () |
| bool | load_custom_uniforms (const QString &directory, QList< CustomUniformDefinition > &uniforms, QString &error) |
| Load custom float-uniform controls from library.json. | |
| bool | load_shader_manifest (const QString &directory, QStringList &shaders, QString &error) |
| Load shader filenames from the preferred manifest in a directory. | |
| bool | migrate_index_manifest_to_json (const QString &directory, bool &created, QString &error) |
| Create library.json from index.txt when a JSON manifest is absent. | |
| bool | remove_shader_manifest_entry (const QString &directory, const QString &shader, QString &error) |
| Remove one shader from the preferred manifest, without deleting its file. | |
| QString | resolvedCustomStyleSheet () |
| std::optional< Backend > | shader_manifest_backend (const QString &directory, QString &error) |
| Read an optional top-level backend hint from library.json. | |
| bool | shader_manifest_exists (const QString &directory) |
| Return true when either supported manifest exists. | |
| QDateTime | shader_manifest_last_modified (const QString &directory) |
| Return the selected manifest's modification time. | |
| std::optional< ShaderLibraryType > | shader_manifest_library_type (const QString &directory, QString &error) |
| Read and validate an optional top-level library_type value. | |
| QString | shader_manifest_path (const QString &directory) |
| Resolve library.json first, then fall back to index.txt. | |
| bool | write_custom_uniforms (const QString &directory, const QList< CustomUniformDefinition > &uniforms, QString &error) |
| Rewrite custom float-uniform controls while preserving all other JSON fields. | |
| bool | write_shader_manifest (const QString &directory, const QStringList &shaders, QString &error) |
| Rewrite the preferred manifest, preserving JSON fields when possible. | |
|
strong |
| Enumerator | |
|---|---|
| Acmx2 | |
| Acmxvk | |
Definition at line 8 of file backend.hpp.
|
strong |
| Enumerator | |
|---|---|
| Source | |
| Runtime | |
Definition at line 28 of file shader-manifest.hpp.
|
strong |
| Enumerator | |
|---|---|
| Json | |
| Text | |
Definition at line 27 of file shader-manifest.hpp.
| bool acmx2::append_shader_manifest | ( | const QString & | directory, |
| const QString & | shader, | ||
| QString & | error ) |
Add one shader to the preferred manifest if it is not already present.
Definition at line 231 of file shader-manifest.cpp.
References append_shader_manifest(), load_shader_manifest(), and write_shader_manifest().
Referenced by append_shader_manifest(), and ShaderDialog::onOkButtonClicked().
|
inline |
Definition at line 129 of file custom_style.hpp.
References applyCustomStyleIfEnabled(), isCustomStyleEnabled(), and resolvedCustomStyleSheet().
Referenced by applyCustomStyleIfEnabled(), AudioSettings::AudioSettings(), MainWindow::copyCommand(), DeepDreamSettingsDialog::DeepDreamSettingsDialog(), PlaylistDialog::generateRandomPlaylist(), LibraryWindow::init(), PropWindow::init(), SettingsWindow::init(), ShaderDialog::init(), TextEditor::init(), LibraryBuilderDialog::LibraryBuilderDialog(), MainWindow::menuWatermarkSettings(), MetadataViewer::MetadataViewer(), MidiSettings::MidiSettings(), GPUFilterDialog::setupUI(), PlaylistDialog::setupUI(), ShaderPassDialog::setupUI(), AudioPlaylistDialog::setupUi(), StableDiffusionSettingsDialog::StableDiffusionSettingsDialog(), and UniformReferenceDialog::UniformReferenceDialog().
|
inline |
Definition at line 24 of file backend.hpp.
References Acmx2, Acmxvk, and backend_from_id().
Referenced by backend_from_id(), MainWindow::initControls(), and shader_manifest_backend().
|
inline |
Definition at line 10 of file backend.hpp.
References Acmxvk, and backend_id().
Referenced by backend_id(), backend_settings_key(), and MainWindow::set_backend().
|
inline |
Definition at line 12 of file backend.hpp.
References Acmxvk, and backend_name().
Referenced by backend_name(), MainWindow::detectFeatureSupport(), LibraryBuilderDialog::exportLibrary(), MainWindow::fileOpenProp(), PropWindow::init(), MainWindow::initControls(), LibraryBuilderDialog::LibraryBuilderDialog(), MainWindow::loadLibraryPath(), LibraryBuilderDialog::openLibrary(), MainWindow::set_backend(), and MainWindow::update_backend_ui().
|
inline |
Definition at line 14 of file backend.hpp.
References backend_id(), and backend_settings_key().
Referenced by LibraryBuilderDialog::addFiles(), LibraryBuilderDialog::addFolder(), MainWindow::addRecentLibrary(), backend_settings_key(), MainWindow::copyCommand(), LibraryBuilderDialog::exportLibrary(), MainWindow::fileOpenProp(), PropWindow::init(), MainWindow::initControls(), MainWindow::loadLibraryPath(), MainWindow::menuBuildShaderCache(), MainWindow::menuRemoveBroken(), MainWindow::newShader(), LibraryBuilderDialog::openLibrary(), anonymous_namespace{main_window.cpp}::resolve_acmxvk_shader_compiler(), PropWindow::restoreDefaults(), MainWindow::set_backend(), MainWindow::start_acmxvk_build(), and MainWindow::updateRecentLibrariesMenu().
|
inline |
Definition at line 27 of file custom_style.hpp.
References acmx2::CustomStylePalette::accent, acmx2::CustomStylePalette::border, buildStyleSheet(), acmx2::CustomStylePalette::buttonBg, acmx2::CustomStylePalette::buttonFg, acmx2::CustomStylePalette::buttonHover, acmx2::CustomStylePalette::fieldBg, acmx2::CustomStylePalette::fieldBorder, acmx2::CustomStylePalette::fieldFg, acmx2::CustomStylePalette::menuBg, acmx2::CustomStylePalette::menuFg, acmx2::CustomStylePalette::menuSelBg, acmx2::CustomStylePalette::menuSelFg, acmx2::CustomStylePalette::selectionBg, acmx2::CustomStylePalette::windowBg, and acmx2::CustomStylePalette::windowFg.
Referenced by buildStyleSheet(), defaultCustomStyleSheet(), and MainWindow::openCustomStyleEditor().
| bool acmx2::create_acmxvk_source_manifest | ( | const QString & | rootDirectory, |
| const QString & | outputPath, | ||
| AcmxvkSourceManifestResult & | result, | ||
| QString & | error ) |
Scan an ACMXVK source tree and atomically generate its library.json.
Fragment shaders are discovered recursively outside directories named compute; compute shaders are discovered beneath a compute directory. Existing custom-uniform ranges and values are preserved.
Definition at line 261 of file acmxvk-source-manifest.cpp.
References create_acmxvk_source_manifest(), and create_acmxvk_source_manifest_impl().
Referenced by create_acmxvk_source_manifest(), LibraryWindow::createShaderManifest(), anonymous_namespace{library-builder.cpp}::export_shader_library(), main(), and main().
| bool acmx2::create_acmxvk_source_manifest_for_shaders | ( | const QString & | rootDirectory, |
| const QStringList & | shaderFiles, | ||
| const QString & | outputPath, | ||
| AcmxvkSourceManifestResult & | result, | ||
| QString & | error ) |
Generate a source manifest from an explicit subset of files below root.
This preserves intentional manifest removals while adding a new shader.
Definition at line 263 of file acmxvk-source-manifest.cpp.
References create_acmxvk_source_manifest_for_shaders(), and create_acmxvk_source_manifest_impl().
Referenced by create_acmxvk_source_manifest_for_shaders(), main(), and ShaderDialog::onOkButtonClicked().
|
static |
Definition at line 106 of file acmxvk-source-manifest.cpp.
References acmx2::AcmxvkSourceManifestResult::computeCount, create_acmxvk_source_manifest_impl(), acmx2::AcmxvkSourceManifestResult::customUniformCount, acmx2::AcmxvkSourceManifestResult::fragmentCount, and acmx2::AcmxvkSourceManifestResult::outputPath.
Referenced by create_acmxvk_source_manifest(), create_acmxvk_source_manifest_for_shaders(), and create_acmxvk_source_manifest_impl().
| bool acmx2::create_shader_manifest | ( | const QString & | directory, |
| ShaderManifestFormat | format, | ||
| const QStringList & | shaders, | ||
| QString & | error ) |
Create a new manifest in the requested format.
Definition at line 290 of file shader-manifest.cpp.
References create_shader_manifest(), and Json.
Referenced by create_shader_manifest(), LibraryWindow::createShaderManifest(), anonymous_namespace{library-builder.cpp}::export_shader_library(), and migrate_index_manifest_to_json().
| bool acmx2::custom_uniform_metadata_matches | ( | const QString & | leftDirectory, |
| const QString & | rightDirectory, | ||
| bool & | matches, | ||
| QString & | error ) |
Compare two manifests' custom-uniform ABI and numeric metadata.
Definition at line 463 of file shader-manifest.cpp.
References custom_uniform_metadata_matches(), load_custom_uniforms(), acmx2::CustomUniformDefinition::maximum, acmx2::CustomUniformDefinition::minimum, acmx2::CustomUniformDefinition::name, acmx2::CustomUniformDefinition::slot, acmx2::CustomUniformDefinition::step, and acmx2::CustomUniformDefinition::value.
Referenced by anonymous_namespace{main_window.cpp}::acmxvk_runtime_manifest_matches(), custom_uniform_metadata_matches(), and main().
|
inline |
Definition at line 16 of file backend.hpp.
References Acmxvk, and default_backend_executable().
Referenced by MainWindow::buildRunArguments(), MainWindow::copyCommand(), default_backend_executable(), PropWindow::init(), MainWindow::initControls(), PropWindow::restoreDefaults(), MainWindow::runSelected(), and MainWindow::set_backend().
|
inline |
Definition at line 95 of file custom_style.hpp.
References acmx2::CustomStylePalette::accent, acmx2::CustomStylePalette::border, buildStyleSheet(), acmx2::CustomStylePalette::buttonBg, acmx2::CustomStylePalette::buttonFg, acmx2::CustomStylePalette::buttonHover, defaultCustomStyleSheet(), acmx2::CustomStylePalette::fieldBg, acmx2::CustomStylePalette::fieldBorder, acmx2::CustomStylePalette::fieldFg, acmx2::CustomStylePalette::menuBg, acmx2::CustomStylePalette::menuFg, acmx2::CustomStylePalette::menuSelBg, acmx2::CustomStylePalette::menuSelFg, acmx2::CustomStylePalette::selectionBg, acmx2::CustomStylePalette::windowBg, and acmx2::CustomStylePalette::windowFg.
Referenced by defaultCustomStyleSheet(), MainWindow::initControls(), and resolvedCustomStyleSheet().
|
inline |
Definition at line 115 of file custom_style.hpp.
References isCustomStyleEnabled().
Referenced by applyCustomStyleIfEnabled(), MainWindow::copyCommand(), isCustomStyleEnabled(), and TextEditor::keyPressEvent().
| bool acmx2::load_custom_uniforms | ( | const QString & | directory, |
| QList< CustomUniformDefinition > & | uniforms, | ||
| QString & | error ) |
Load custom float-uniform controls from library.json.
Definition at line 320 of file shader-manifest.cpp.
References acmx2::ipc::kShaderSelectionMaxCustomUniforms, load_custom_uniforms(), acmx2::CustomUniformDefinition::maximum, acmx2::CustomUniformDefinition::minimum, acmx2::CustomUniformDefinition::name, acmx2::CustomUniformDefinition::slot, acmx2::CustomUniformDefinition::step, and acmx2::CustomUniformDefinition::value.
Referenced by custom_uniform_metadata_matches(), load_custom_uniforms(), CustomUniformDialog::loadLibrary(), main(), and MainWindow::updateOpenEditorShaderContexts().
| bool acmx2::load_shader_manifest | ( | const QString & | directory, |
| QStringList & | shaders, | ||
| QString & | error ) |
Load shader filenames from the preferred manifest in a directory.
Definition at line 145 of file shader-manifest.cpp.
References load_shader_manifest(), and shader_manifest_path().
Referenced by anonymous_namespace{main_window.cpp}::acmxvk_runtime_manifest_matches(), append_shader_manifest(), MainWindow::initControls(), anonymous_namespace{main_window.cpp}::is_acmxvk_source_library(), load_shader_manifest(), MainWindow::loadShaders(), main(), ShaderDialog::onOkButtonClicked(), LibraryBuilderDialog::openLibrary(), remove_shader_manifest_entry(), anonymous_namespace{main_window.cpp}::resolve_acmxvk_runtime_library(), and MainWindow::updateIndex().
| bool acmx2::migrate_index_manifest_to_json | ( | const QString & | directory, |
| bool & | created, | ||
| QString & | error ) |
Create library.json from index.txt when a JSON manifest is absent.
Definition at line 261 of file shader-manifest.cpp.
References create_shader_manifest(), Json, and migrate_index_manifest_to_json().
Referenced by MainWindow::loadShaders(), and migrate_index_manifest_to_json().
| bool acmx2::remove_shader_manifest_entry | ( | const QString & | directory, |
| const QString & | shader, | ||
| QString & | error ) |
Remove one shader from the preferred manifest, without deleting its file.
Definition at line 240 of file shader-manifest.cpp.
References load_shader_manifest(), remove_shader_manifest_entry(), and write_shader_manifest().
Referenced by main(), MainWindow::menuRemove(), and remove_shader_manifest_entry().
|
inline |
Definition at line 120 of file custom_style.hpp.
References defaultCustomStyleSheet(), and resolvedCustomStyleSheet().
Referenced by applyCustomStyleIfEnabled(), and resolvedCustomStyleSheet().
| std::optional< Backend > acmx2::shader_manifest_backend | ( | const QString & | directory, |
| QString & | error ) |
Read an optional top-level backend hint from library.json.
A missing hint and a legacy index.txt both return std::nullopt with an empty error. Invalid metadata returns std::nullopt with a non-empty error.
Definition at line 89 of file shader-manifest.cpp.
References backend_from_id(), shader_manifest_backend(), and shader_manifest_path().
Referenced by LibraryBuilderDialog::exportLibrary(), MainWindow::initControls(), MainWindow::loadLibraryPath(), LibraryBuilderDialog::openLibrary(), MainWindow::set_backend(), and shader_manifest_backend().
| bool acmx2::shader_manifest_exists | ( | const QString & | directory | ) |
Return true when either supported manifest exists.
Definition at line 85 of file shader-manifest.cpp.
References shader_manifest_exists(), and shader_manifest_path().
Referenced by anonymous_namespace{main_window.cpp}::acmxvk_shader_build_state(), MainWindow::initControls(), MainWindow::loadLibraryPath(), MainWindow::newShader(), anonymous_namespace{main_window.cpp}::resolve_acmxvk_runtime_library(), MainWindow::set_backend(), and shader_manifest_exists().
| QDateTime acmx2::shader_manifest_last_modified | ( | const QString & | directory | ) |
Return the selected manifest's modification time.
Definition at line 87 of file shader-manifest.cpp.
References shader_manifest_last_modified(), and shader_manifest_path().
Referenced by MainWindow::menuRemove(), shader_manifest_last_modified(), and MainWindow::updateIndex().
| std::optional< ShaderLibraryType > acmx2::shader_manifest_library_type | ( | const QString & | directory, |
| QString & | error ) |
Read and validate an optional top-level library_type value.
Definition at line 116 of file shader-manifest.cpp.
References Runtime, shader_manifest_library_type(), shader_manifest_path(), and Source.
Referenced by anonymous_namespace{main_window.cpp}::is_acmxvk_source_library(), MainWindow::loadLibraryPath(), MainWindow::newShader(), LibraryBuilderDialog::openLibrary(), anonymous_namespace{main_window.cpp}::resolve_acmxvk_runtime_library(), and shader_manifest_library_type().
| QString acmx2::shader_manifest_path | ( | const QString & | directory | ) |
Resolve library.json first, then fall back to index.txt.
Definition at line 75 of file shader-manifest.cpp.
References shader_manifest_path().
Referenced by load_shader_manifest(), MainWindow::loadShaders(), MainWindow::menuRemove(), MainWindow::menuRemoveBroken(), shader_manifest_backend(), shader_manifest_exists(), shader_manifest_last_modified(), shader_manifest_library_type(), shader_manifest_path(), MainWindow::updateIndex(), and write_shader_manifest().
| bool acmx2::write_custom_uniforms | ( | const QString & | directory, |
| const QList< CustomUniformDefinition > & | uniforms, | ||
| QString & | error ) |
Rewrite custom float-uniform controls while preserving all other JSON fields.
Definition at line 397 of file shader-manifest.cpp.
References acmx2::ipc::kShaderSelectionMaxCustomUniforms, acmx2::CustomUniformDefinition::maximum, acmx2::CustomUniformDefinition::minimum, acmx2::CustomUniformDefinition::name, acmx2::CustomUniformDefinition::slot, acmx2::CustomUniformDefinition::step, acmx2::CustomUniformDefinition::value, and write_custom_uniforms().
Referenced by CustomUniformDialog::loadLibrary(), main(), CustomUniformDialog::saveUniforms(), and write_custom_uniforms().
| bool acmx2::write_shader_manifest | ( | const QString & | directory, |
| const QStringList & | shaders, | ||
| QString & | error ) |
Rewrite the preferred manifest, preserving JSON fields when possible.
Definition at line 181 of file shader-manifest.cpp.
References shader_manifest_path(), and write_shader_manifest().
Referenced by append_shader_manifest(), MainWindow::initControls(), remove_shader_manifest_entry(), MainWindow::updateIndex(), and write_shader_manifest().