@@ -22,11 +22,10 @@ __PGA-shape__ can be used as a C++/CUDA idiom or as a domain specific language (
2222you could write the following grammar in __ PGA-shape__ C++/CUDA:
2323
2424 struct Rules : T::List <
25- /* rule[ 0] = * / Proc < Box, Subdivide<DynParam<0>, T::Pair< DynParam<1>, DCall<0>>, T::Pair< DynParam<2>, DCall<1>>, T::Pair< DynParam<3>, DCall<2>>>, 1>,
26- /* rule[ 1] = * / Proc < Box, Discard, 1>,
27- /* rule[ 2] = * / Proc < Box, IfSizeLess< DynParam<0>, DynParam<1>, DCall<0>, DCall<1>>, 1>,
28- /* rule[ 3] = * / Proc < Box, Generate< false, 1 /* instanced triangle mesh* /,
29- DynParam<0>>, 1>,
25+ /* SubXYZ * / Proc < Box, Subdivide<DynParam<0>, T::Pair< DynParam<1>, DCall<0>>, T::Pair< DynParam<2>, DCall<1>>, T::Pair< DynParam<3>, DCall<2>>>, 1>,
26+ /* Discard * / Proc < Box, Discard, 1>,
27+ /* A * / Proc < Box, IfSizeLess< DynParam<0>, DynParam<1>, DCall<0>, DCall<1>>, 1>,
28+ /* B * / Proc < Box, Generate< false, 1 /* instanced triangle mesh* /, DynParam<0>>, 1>,
3029 > {};
3130
3231or the equivalent grammar in the __ PGA-shape__ DSL:
0 commit comments