Wayverb
boundary_index_array.h
1 #pragma once
2 
3 #include "waveguide/cl/utils.h"
4 
5 namespace wayverb {
6 namespace waveguide {
7 
8 template <size_t n>
9 struct alignas(1 << 2) boundary_index_array final {
10  cl_uint array[n];
11 };
12 
16 
17 } // namespace waveguide
18 
19 template <>
20 struct core::cl_representation<waveguide::boundary_index_array_1> final {
21  static constexpr auto value = R"(
22 typedef struct { uint array[1]; } boundary_index_array_1;
23 )";
24 };
25 
26 template <>
27 struct core::cl_representation<waveguide::boundary_index_array_2> final {
28  static constexpr auto value = R"(
29 typedef struct { uint array[2]; } boundary_index_array_2;
30 )";
31 };
32 
33 template <>
34 struct core::cl_representation<waveguide::boundary_index_array_3> final {
35  static constexpr auto value = R"(
36 typedef struct { uint array[3]; } boundary_index_array_3;
37 )";
38 };
39 
40 } // namespace wayverb
Definition: representation.h:7
Definition: boundary_index_array.h:9
Definition: capsule_base.h:9