diff options
| author | skal <pascal.massimino@gmail.com> | 2026-05-21 08:10:47 +0200 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-05-21 08:10:47 +0200 |
| commit | d806027dcaeadcdd8d2febd88bc46b2fd2c465de (patch) | |
| tree | 30bc1ef9f40ccab7c00e31ee20e62bb86755fa26 /cnn_v3/src/gbuf_view_effect.h | |
| parent | 680042a18c11ad5e58757e45b260745c2f52417f (diff) | |
Diffstat (limited to 'cnn_v3/src/gbuf_view_effect.h')
| -rw-r--r-- | cnn_v3/src/gbuf_view_effect.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/cnn_v3/src/gbuf_view_effect.h b/cnn_v3/src/gbuf_view_effect.h index d4d8139..a8fd5c9 100644 --- a/cnn_v3/src/gbuf_view_effect.h +++ b/cnn_v3/src/gbuf_view_effect.h @@ -1,6 +1,7 @@ // GBufViewEffect: Visualizes G-buffer feature textures as a 4×5 channel grid. -// Inputs: feat_tex0 (rgba32uint, ch 0-7 f16), feat_tex1 (rgba32uint, ch 8-19 unorm8) -// Output: rgba8unorm tiled channel visualization (downscaled 4× per channel) +// Inputs: feat_tex0 (rgba32uint, ch 0-7 f16), feat_tex1 (rgba32uint, ch 8-19 +// unorm8) Output: rgba8unorm tiled channel visualization (downscaled 4× per +// channel) #pragma once @@ -10,16 +11,14 @@ class GBufViewEffect : public Effect { public: - GBufViewEffect(const GpuContext& ctx, - const std::vector<std::string>& inputs, - const std::vector<std::string>& outputs, - float start_time, float end_time); + GBufViewEffect(const GpuContext& ctx, const std::vector<std::string>& inputs, + const std::vector<std::string>& outputs, float start_time, + float end_time); - void render(WGPUCommandEncoder encoder, - const UniformsSequenceParams& params, + void render(WGPUCommandEncoder encoder, const UniformsSequenceParams& params, NodeRegistry& nodes) override; private: RenderPipeline pipeline_; - BindGroup bind_group_; + BindGroup bind_group_; }; |
