82 for (
int y = gid.
y + gid.
z * nthreads.
y;
y < srt.ncurves;
y += nthreads.
y * nthreads.
z) {
83 for (
int x = gid.
x;
x < srt.elements_per_curve;
x += nthreads.
x) {
84 int store_index = (
x +
y * srt.elements_per_curve) * 6;
85 uint t =
x * 2 +
y * (srt.elements_per_curve * 2 + 2);
86 srt.out_indices[store_index + 0] = t;
87 srt.out_indices[store_index + 1] = t + 1u;
88 srt.out_indices[store_index + 2] = t + 2u;
89 srt.out_indices[store_index + 3] = t + 1u;
90 srt.out_indices[store_index + 4] = t + 3u;
91 srt.out_indices[store_index + 5] = t + 2u;