Skip to content

Commit 7abaac6

Browse files
committed
Fixup SDFGI shader compilation error after #80390
My mistake, I added this when rebasing and didn't notice that it was a .glsl file and thus the availability of Math was not confirmed by the C++ compiler.
1 parent 07b8860 commit 7abaac6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

servers/rendering/renderer_rd/shaders/environment/sdfgi_preprocess.glsl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,7 @@ void main() {
10331033

10341034
if (local == ivec3(0) && store_position_count > 0) {
10351035
store_from_index = atomicAdd(dispatch_data.total_count, store_position_count);
1036-
uint group_count = Math::division_round_up(store_from_index + store_position_count, 64);
1036+
uint group_count = (store_from_index + store_position_count - 1) / 64 + 1;
10371037
atomicMax(dispatch_data.x, group_count);
10381038
}
10391039

0 commit comments

Comments
 (0)