From 8ba0849bcfb5c8a1fbffa7b1900030ec819c327e Mon Sep 17 00:00:00 2001 From: Philip Rideout Date: Thu, 13 Jun 2019 08:51:21 -0700 Subject: [PATCH] lucy_bloom: improve code comments --- samples/lucy_utils.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/samples/lucy_utils.cpp b/samples/lucy_utils.cpp index 270e53bbf0..cec56d8841 100644 --- a/samples/lucy_utils.cpp +++ b/samples/lucy_utils.cpp @@ -132,6 +132,9 @@ Entity createQuad(Engine* engine, Texture* tex, ImageOp op, Texture* secondary) return Material::Builder().package(pkg.getData(), pkg.getSize()).build(engine); }(*engine); + // Compute the "weights" array, which is composed of two consective sequences of 4-tuples: + // [WEIGHT, OFFSET_X, OFFSET_Y, DONT_CARE] + // The first sequence is for the horizontal pass, the second sequence is for the vertical pass. static const float4* weights = []() { static float4 weights[FILTER_SIZE * 2]; float4* hweights = weights;