Blender Git Loki

Git Commits -> Revision 6d86e35

Revision 6d86e35 by Sergey Sharybin (cycles-x)
February 18, 2021, 14:04 (GMT)
Cycles: Refactor KernelFunctions class

- Rename it toKernelFunction with a comment which makes it explicit
that it is a single kernel, which picks up best microarchitecture
for the current configuration.

- Re-write initialization part, avoiding chain of code-wise if-else
mixed together with preprocessor.

Some further possibilities:

- Avoid preprocessor check, and rely on settings and function pointers
to pick up best kernel, avoiding preprocessor.

- Use string_view or something similar instead of `char*` to make
comparison more modern.

Commit Details:

Full Hash: 6d86e3516b0443ff26fb3b675345121de3d3e494
Parent Commit: dad6bf0
Lines Changed: +106, -83

1 Modified Path:

/intern/cycles/device/device_cpu.cpp (+106, -83) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021