FastLED 3.10.8
Loading...
Searching...
No Matches

◆ FL_ALIGNAS() [1/5]

struct fl::FL_ALIGNAS ( 16 )

Combined sin+cos result for 4 angles (raw SIMD primitives)

Definition at line 1 of file chasing_spiral_state.h.

24 {
25 // SoA pixel geometry — built once when grid size changes, reused every frame.
26 // Each array has `count` valid entries, padded to the next multiple of 4
27 // (so SIMD loads never read past the allocation).
28 fl::vector<fl::i32> base_angle; // 3*theta - dist/3, raw s16x16
29 fl::vector<fl::i32> dist_scaled; // distance * 0.1, raw s16x16
30 fl::vector<fl::i32> rf3; // 3 * radial_filter, raw s16x16 (red)
31 fl::vector<fl::i32> rf_half; // radial_filter / 2, raw s16x16 (green)
32 fl::vector<fl::i32> rf_quarter; // radial_filter / 4, raw s16x16 (blue)
33 fl::vector<fl::u16> pixel_idx; // pre-mapped xyMap(x,y) LED index
34 int count = 0;
35
36 // Perlin fade LUT (257 entries, Q8.24 format).
37 // FL_ALIGNAS(16): enables aligned SIMD loads in pnoise2d_raw_simd4_vec.
38 FL_ALIGNAS(16) fl::i32 fade_lut[257];
39 bool fade_lut_initialized = false;
40
41 ChasingSpiralState() FL_NO_EXCEPT : fade_lut{}, fade_lut_initialized(false) {}
42};
u8 u8 fract8 blur_amount FL_NO_EXCEPT
Definition blur.h:186
Base definition for an LED controller.
#define FL_ALIGNAS(N)

References FL_ALIGNAS(), FL_ALIGNAS, and FL_NO_EXCEPT.

+ Here is the call graph for this function: