blender/intern/opensubdiv
Clément Foucault 45c17d635f GPU: Make GL and VK backend output resources at source location
This is done by using a define for each create info resource
frequency. This allows to remove the implicit source include
ordering.

This requires the correct `*infos.hh` file is included in the
shader source. The info file needs to include any shared
header that is needed for buffer declarations (previously
`TYPEDEF_SOURCE`).
This patch mostly contains those changes.

The `*infos.hh` files are now parsed and part of the shader
source include tree. The result of the parser for now is a
simple replacement with some placeholder macros for
the resource definition that are created at runtime. This
is to avoid complicated and error prone search and replace
of the placeholder at runtime.

Note that including the infos files inflate the final source
quite a bit because the create info are usually shared
with many shaders that have different requirements.
The follow up task for reducing this overhead is to move
the create info back to the associated files or group them
by dependencies (by typedef_source or by create info include).

While the immediate side effect might look like this makes
the shader codebase include deps more spaghetti-like, it only
exposes the issue that was already there. Now it is just more
apparent.

To avoid `gpu_shader_fullscreen_vert.glsl` including all
the engines shared headers, we have to duplicate it per engine.

Rel #137446

Pull Request: https://projects.blender.org/blender/blender/pulls/149263
2025-11-20 14:21:25 +01:00
..
internal GPU: Make GL and VK backend output resources at source location 2025-11-20 14:21:25 +01:00
stub
CMakeLists.txt GPU: Shader: Make info files generated 2025-09-25 10:57:02 +02:00
opensubdiv_capi.hh
opensubdiv_capi_type.hh
opensubdiv_converter_capi.hh Cleanup: spelling in comments & duplicate terms (check_spelling.py) 2025-06-04 01:51:29 +00:00
opensubdiv_evaluator.hh GPU: Remove wrapper type for gpu::StorageBuf 2025-08-11 10:35:53 +02:00
opensubdiv_evaluator_capi.hh
opensubdiv_topology_refiner.hh