fix: apply CodeRabbit auto-fixes

Fixed 3 file(s) based on 3 unresolved review comments.

Co-authored-by: CodeRabbit <noreply@coderabbit.ai>
This commit is contained in:
coderabbitai[bot]
2026-07-05 02:15:14 +00:00
committed by GitHub
parent f6558d3fa5
commit e243b68f92
3 changed files with 3 additions and 3 deletions
@@ -65,7 +65,7 @@ const uvec2 SWIZZLE_MASK = uvec2(GOB_SIZE_X - 1, GOB_SIZE_Y - 1);
uint SwizzleTable(uint pos) {
uint n = pos >> 4;
uint c0 = (n << 3) & 0x10;
uint c1 = (uint(uint64_t(0x7575646431312020ull) >> uint64_t((n & 0xf) << 2)) + ((n & 0x10) >> 1)) & 0xf;
uint c1 = (uint(uint64_t(0x7575646431312020ul) >> uint64_t((n & 0xf) << 2)) + ((n & 0x10) >> 1)) & 0xf;
return ((c0 | c1) << 4) | (pos & 0xf);
}
@@ -20,7 +20,7 @@ void main() {
const ivec3 scale = out_size / msaa_size;
for (int curr_sample = 0; curr_sample < num_samples; ++curr_sample) {
const vec4 pixel = imageLoad(msaa_in, coords, curr_sample);
const ivec3 dest_coords = ivec3(scale.xy, 1) * coords + (ivec3(cur_sample, cur_sample / 2, 0) & 1);
const ivec3 dest_coords = ivec3(scale.xy, 1) * coords + (ivec3(curr_sample, curr_sample / 2, 0) & 1);
if (!any(greaterThanEqual(dest_coords, imageSize(output_img)))) {
imageStore(output_img, dest_coords, pixel);
}
@@ -19,7 +19,7 @@ void main() {
const ivec3 out_size = imageSize(img_in);
const ivec3 scale = out_size / msaa_size;
for (int curr_sample = 0; curr_sample < num_samples; ++curr_sample) {
const ivec3 single_coords = ivec3(scale.xy, 1) * coords + (ivec3(cur_sample, cur_sample / 2, 0) & 1);
const ivec3 single_coords = ivec3(scale.xy, 1) * coords + (ivec3(curr_sample, curr_sample / 2, 0) & 1);
if (!any(greaterThanEqual(single_coords, imageSize(img_in)))) {
const vec4 pixel = imageLoad(img_in, single_coords);
imageStore(output_msaa, coords, curr_sample, pixel);