Skip to content

Commit 6e3aef8

Browse files
committed
fixup counter atomic in CMAA
1 parent 68eb83d commit 6e3aef8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

shader/antialiasing/cmaa2/edge_color2x2.comp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ void main() {
189189
//NOTE: gl_NumWorkGroups is not implemented in DX12
190190
const ivec2 texSize = textureSize(sceneTonemapped, 0);
191191
const ivec2 outputGroupSize = ivec2(CMAA2_CS_OUTPUT_KERNEL_SIZE_X, CMAA2_CS_OUTPUT_KERNEL_SIZE_Y);
192-
const ivec2 groupCount = ivec2(texSize + outputGroupSize - 1) / (outputGroupSize * 2);
192+
const ivec2 groupCount = ivec2(texSize + outputGroupSize * 2 - 1) / (outputGroupSize * 2);
193193

194194
if((atomicAdd(controlBuffer.iterator,1)+1)==(groupCount.x*groupCount.y)) {
195195
memoryBarrierBuffer();

0 commit comments

Comments
 (0)