1
0
Fork 0

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.
This commit is contained in:
Rémi Verschelde 2024-01-03 08:51:00 +01:00
parent 07b88600b7
commit 7abaac631b
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 1 deletions

View File

@ -1033,7 +1033,7 @@ void main() {
if (local == ivec3(0) && store_position_count > 0) {
store_from_index = atomicAdd(dispatch_data.total_count, store_position_count);
uint group_count = Math::division_round_up(store_from_index + store_position_count, 64);
uint group_count = (store_from_index + store_position_count - 1) / 64 + 1;
atomicMax(dispatch_data.x, group_count);
}