GPU: Add GLSL preprocessor

This splits the GLSL processing into its own file
as it will grow in complexity.

Removes the complexity from `datatoc` and chain them
during the build process.

Rel #128076

Pull Request: https://projects.blender.org/blender/blender/pulls/128261
This commit is contained in:
Clément Foucault
2024-10-04 11:33:21 +02:00
committed by Clément Foucault
parent af19a48e80
commit 0bfd5e3536
10 changed files with 128 additions and 161 deletions

View File

@@ -85,10 +85,9 @@ if(WITH_OPENSUBDIV)
add_definitions(-D_USE_MATH_DEFINES)
endif()
data_to_c_simple(
glsl_to_c(
internal/evaluator/shaders/glsl_compute_kernel.glsl
SRC
STRIP_LEADING_C_COMMENTS
)
else()
list(APPEND SRC