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

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.

Enumeration Type Documentation

◆ Backend

enum class acmx2::Backend
strong
Enumerator
Acmx2 
Acmxvk 

Definition at line 8 of file backend.hpp.

◆ ShaderLibraryType

enum class acmx2::ShaderLibraryType
strong
Enumerator
Source 
Runtime 

Definition at line 28 of file shader-manifest.hpp.

◆ ShaderManifestFormat

enum class acmx2::ShaderManifestFormat
strong
Enumerator
Json 
Text 

Definition at line 27 of file shader-manifest.hpp.

Function Documentation

◆ append_shader_manifest()

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

◆ applyCustomStyleIfEnabled()

◆ backend_from_id()

std::optional< Backend > acmx2::backend_from_id ( const QString & value)
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().

◆ backend_id()

QString acmx2::backend_id ( Backend 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().

◆ backend_name()

◆ backend_settings_key()

◆ buildStyleSheet()

◆ create_acmxvk_source_manifest()

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

◆ create_acmxvk_source_manifest_for_shaders()

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

◆ create_acmxvk_source_manifest_impl()

bool acmx2::create_acmxvk_source_manifest_impl ( const QString & rootDirectory,
const QString & requestedOutputPath,
const QStringList * includedShaders,
AcmxvkSourceManifestResult & result,
QString & error )
static

◆ create_shader_manifest()

bool acmx2::create_shader_manifest ( const QString & directory,
ShaderManifestFormat format,
const QStringList & shaders,
QString & error )

◆ custom_uniform_metadata_matches()

bool acmx2::custom_uniform_metadata_matches ( const QString & leftDirectory,
const QString & rightDirectory,
bool & matches,
QString & error )

◆ default_backend_executable()

◆ defaultCustomStyleSheet()

◆ isCustomStyleEnabled()

bool acmx2::isCustomStyleEnabled ( )
inline

◆ load_custom_uniforms()

◆ load_shader_manifest()

◆ migrate_index_manifest_to_json()

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

◆ remove_shader_manifest_entry()

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

◆ resolvedCustomStyleSheet()

QString acmx2::resolvedCustomStyleSheet ( )
inline

◆ shader_manifest_backend()

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

◆ shader_manifest_exists()

◆ shader_manifest_last_modified()

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

◆ shader_manifest_library_type()

std::optional< ShaderLibraryType > acmx2::shader_manifest_library_type ( const QString & directory,
QString & error )

◆ shader_manifest_path()

◆ write_custom_uniforms()

◆ write_shader_manifest()

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