Files
fn_registry/cpp/functions/gfx/dag_uniforms.h
T
egutierrez e115c2e3fd feat(shaders_lab): DAG pipeline mode with node catalog
- cpp/functions/gfx/dag_types: DagStep, DagNodeDef, DagControl (header-only)
- cpp/functions/gfx/dag_catalog: 10 hardcoded nodes (4 gen, 3 op, 3 blend) ported from shader-dag-blends.jsx
- cpp/functions/gfx/dag_compile: pipeline → GLSL 330 core with fan-in via source_id
- cpp/functions/gfx/dag_uniforms: upload u_params[16] via glUniform4fv
- cpp/functions/gfx/dag_panel: ImGui pipeline editor (add/remove/reorder/controls)
- main.cpp: Code/DAG mode toggle, per-mode compile path and uniforms
- gl_loader: +glUniform4fv
- rebuild Windows .exe

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-24 21:15:21 +02:00

12 lines
337 B
C++

#pragma once
#include <vector>
#include "gfx/dag_types.h"
namespace fn::gfx {
// Sube los params del pipeline al shader via glUniform4fv(u_params, 16, data).
// El programa GL debe estar activo (glUseProgram'd) por el caller.
void dag_uniforms_apply(const std::vector<DagStep>& pipeline, unsigned int program);
} // namespace fn::gfx