We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68eb83d commit 6e3aef8Copy full SHA for 6e3aef8
1 file changed
shader/antialiasing/cmaa2/edge_color2x2.comp
@@ -189,7 +189,7 @@ void main() {
189
//NOTE: gl_NumWorkGroups is not implemented in DX12
190
const ivec2 texSize = textureSize(sceneTonemapped, 0);
191
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);
+ const ivec2 groupCount = ivec2(texSize + outputGroupSize * 2 - 1) / (outputGroupSize * 2);
193
194
if((atomicAdd(controlBuffer.iterator,1)+1)==(groupCount.x*groupCount.y)) {
195
memoryBarrierBuffer();
0 commit comments