layout(r8ui) uniform restrict readonly uimage2D cum2sym_tex;
layout(rg16ui) uniform restrict readonly uimage2D dsyms_tex;
layout(r8) uniform restrict writeonly image2D out_tex;
+layout(r16i) uniform restrict writeonly iimage2D coeff_tex;
const uint prob_bits = 12;
const uint prob_scale = 1 << prob_bits;
last_k = k;
}
+#if 0
+ uint y = block_row * 16 + block_y * 8 + local_y;
+ uint x = block_x * 64 + subblock_idx * 8 + local_x;
+ imageStore(coeff_tex, ivec2(x, y), ivec4(k, 0,0,0));
+#endif
+
temp[slice_num * 64 * 8 + subblock_idx * 64 + coeff_num] = k * q;
//temp[subblock_idx * 64 + 8 * y + x] = (2 * k * w * 4) / 32; // 100% matching unquant
}