• OctoMY API
  • OctoMY API Reference
  • C++ Classes
  • OctoMY
  • ShaderPreviewPanel
  • ShaderPreviewPanel Class

    The shader preview: what the engine builds, in three pages. More...

    Header: #include <ShaderPreviewPanel>
    Inherits: QObject

    Detailed Description

    Shader source is the monolithic reference GLSL: every line that ends up in the linked program, in one readable chunk. Modules is what feeds the linker (§RU-P1b): one entry per library module, with its cache and build metadata above the snippet. Artifact is the last linked build: route taken, timings, sizes and cache hits, in the key and value table format that AboutActivity uses.

    The pages live in the tab widget of the debug pane, beside Raw scene and Layers, through attachTabs() (owner ruling 2026-09-06). This object owns the pages and their refresh logic.

    It is a QObject and not a QWidget (windows-field-defects §WFD-RL-79). Until 2026-10-04 it was a QWidget that nothing laid out. Qt gave it the default child geometry, 100 by 30 px at the top left corner of the shell, over the toolbar. It drew nothing and took every mouse press there, so New and Open answered only on their lower half.