summaryrefslogtreecommitdiff
path: root/src/gpu/shader_composer.h
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-17 11:16:24 +0100
committerskal <pascal.massimino@gmail.com>2026-02-17 11:16:24 +0100
commitbd26bc743933dcd5241fc87d160a893f83644dfb (patch)
tree373aa9c866fc6f6bbc58f4e27395f58563acbccc /src/gpu/shader_composer.h
parenta1789611cdce872c2cecb2c6412c9eda12745916 (diff)
docs(gpu): Purge comment bloat from GPU headers
Removed redundant and obvious comments from 7 GPU headers: - post_process_helper.h: binding comments, stale UniformsSequenceParams note - shader_composer.h: verbose Compose/VerifyIncludes descriptions - uniform_helper.h: obvious method comments - effect.h: redundant render/resize comments - gpu.h: verbose struct/header comments, GPU perf placeholder - sdf_effect.h: obvious method comments - sequence.h: duplicate header, obvious API comments Kept only non-obvious context (binding conventions, headless mode notes). Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'src/gpu/shader_composer.h')
-rw-r--r--src/gpu/shader_composer.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/gpu/shader_composer.h b/src/gpu/shader_composer.h
index d0972f2..90e1ec1 100644
--- a/src/gpu/shader_composer.h
+++ b/src/gpu/shader_composer.h
@@ -12,19 +12,16 @@ class ShaderComposer {
public:
static ShaderComposer& Get();
- // Register a snippet (e.g. "common_math", "sdf_primitives")
void RegisterSnippet(const std::string& name, const std::string& code);
using CompositionMap = std::map<std::string, std::string>;
- // Assemble a final shader string by prepending required snippets
- // and recursively resolving #include "snippet_name" directives.
- // Optional substitutions: map "placeholder_name" -> "actual_snippet_name"
+ // Resolves #include directives recursively
+ // substitutions: map "placeholder_name" -> "actual_snippet_name"
std::string Compose(const std::vector<std::string>& dependencies,
const std::string& main_code,
const CompositionMap& substitutions = {});
- // Verify all #include directives reference registered snippets
void VerifyIncludes() const;
private: