blender/intern/cycles/kernel/device/optix
Lukas Stockner 8cb5e05c48 Cleanup: Cycles: Deduplicate kernel attribute code using templating
The attribute handling code in the kernel is currently highly duplicated since
it needs to handle five different data types and we couldn't use templates
back then.
We can now, so might as well make use of it and get rid of ~1000 lines.

There are also some small fixes for the GPU OSL code:
- Wrong derivative for .w component when converting float2/float3->float4
- Different conversion for float2->float (CPU averages, GPU used to take .x)
- Removed useless code for converting to float2, not used by OSL

Pull Request: https://projects.blender.org/blender/blender/pulls/134694
2025-02-20 19:28:45 +01:00
..
bvh.h Refactor: Cycles: Add const keyword to more function parameters 2025-01-03 10:23:24 +01:00
compat.h Cleanup: Cycles: Deduplicate kernel attribute code using templating 2025-02-20 19:28:45 +01:00
globals.h Refactor: Cycles: Add const keyword where possible, using clang-tidy 2025-01-03 10:23:20 +01:00
kernel.cu License headers: use SPDX-FileCopyrightText for *.inl and *.osl files 2023-08-04 13:24:17 +10:00
kernel_osl.cu License headers: use SPDX-FileCopyrightText for *.inl and *.osl files 2023-08-04 13:24:17 +10:00
kernel_shader_raytrace.cu Fix: Cycles build issues when disabling various kernel features 2024-06-13 19:41:19 +02:00