blender/source/blender/gpu/shader_tool/bsl
Clément Foucault 882e62d1c7 GPU: Shader: Misc changes for BSL 5.3
## Fix: GPU: Shader Tool: Codegen bugs

- Inlining not reseting cursor properly.
- Enum defines missing newline.
- Entry points requiring create intos.
- Missing condition for vertex inputs.
- Node input qualifier parsing error.
- Node parser bailing out on first mismatch.

## GPU: Shader Tool: Do not output create info for runtime generated files

This avoid issue with redefined `KernelGlobals`.
Although we need a solution for when
there will be a second implementation.

## Fix: GPU: Shader Tool: Error in node signature parsing

Also make the enum system more robust by
output enum names, and reporting error on parsing
instead of at runtime.

## GPU: Shader: Misc changes for BSL 5.3

- Implement functions in material interface.
- Make KernelGlobals a resource table in material interface.
- Add missing includes.
- Use `[[force_inline]]` to replace some macros.
- Rework `dF_*` functions / macros to avoid ambiguity.
- Move `node_attribute_layer_impl` to EEVEE.
- Move `front_facing` to `ShadingData`.
- Move point infos to `ShadingData`.
- Fix static function call from templated type.
- Remove usage of `gl_WorkGroupSize`.
- Fix `[[condition]]` attribute parsing.
- Avoid out of bound read in constexpr eval.
- Convert macros in shader_test_lib to templates.

Pull Request: https://projects.blender.org/blender/blender/pulls/164112
2026-09-18 17:44:09 +02:00
..
codegen.cc GPU: Shader: Misc changes for BSL 5.3 2026-09-18 17:44:09 +02:00
constexpr.hh GPU: Shader: Misc changes for BSL 5.3 2026-09-18 17:44:09 +02:00
constructor.cc
diagnostic.hh GPU: Shader: Misc changes for BSL 5.3 2026-09-18 17:44:09 +02:00
grammar.cc GPU: Shader Tool: Add support for bitfields 2026-09-07 12:29:38 +02:00
operator.cc GPU: Shader: Cleanup and bugfix for BSL 5.3 2026-09-17 17:09:14 +02:00
resource.cc Fix: GPU: Shader Tool: New BSL compiler errors 2026-08-25 12:22:58 +02:00
resource.hh
source_location.hh
symbol.cc GPU: Shader: Misc changes for BSL 5.3 2026-09-18 17:44:09 +02:00
symbol_class.cc GPU: Shader Tool: Add support for bitfields 2026-09-07 12:29:38 +02:00
symbol_class.hh
symbol_function.cc GPU: Shader: Cleanup and bugfix for BSL 5.3 2026-09-17 17:09:14 +02:00
symbol_function.hh GPU: Shader: Cleanup and bugfix for BSL 5.3 2026-09-17 17:09:14 +02:00
symbol_scope.cc GPU: Shader: Misc changes for BSL 5.3 2026-09-18 17:44:09 +02:00
symbol_scope.hh Fix: GPU: Shader Tool: New BSL compiler errors 2026-08-25 12:22:58 +02:00
symbol_table.cc GPU: Shader: Cleanup and bugfix for BSL 5.3 2026-09-17 17:09:14 +02:00
symbol_table.hh GPU: Shader Tool: Support vector constexpr 2026-09-16 17:30:59 +02:00
symbol_template.cc GPU: Shader: Cleanup and bugfix for BSL 5.3 2026-09-17 17:09:14 +02:00
symbol_template.hh
symbol_variable.cc GPU: Shader Tool: Support vector constexpr 2026-09-16 17:30:59 +02:00
symbol_variable.hh GPU: Shader Tool: Support vector constexpr 2026-09-16 17:30:59 +02:00
type_checker.cc GPU: Shader Tool: Support vector constexpr 2026-09-16 17:30:59 +02:00
type_checker.hh GPU: Shader Tool: Support vector constexpr 2026-09-16 17:30:59 +02:00