Update for unorm change in `compute-shader`
@@ -31,8 +31,8 @@ __kernel void accum(__write_only image2d_t gImage,
int2 coord = (int2)((int)column, (int)row);
coverage += read_imagef(gCoverage, SAMPLER, coord).r;
- uint gray = convert_uint(clamp(fabs(coverage), 0.0f, 1.0f) * 255.0f);
- write_imageui(gImage, coord + (int2)kAtlasRect.xy, (uint4)(gray, 255, 255, 255));
+ float gray = fabs(coverage);
+ write_imagef(gImage, coord + (int2)kAtlasRect.xy, (float4)(gray, 1.0f, 1.0f, 1.0f));
}
}
