blender/build_files/cmake
Jeroen Bakker 9c0d822737 GPU: Compile vulkan shaders to Spir-V binaries.
Compile each static shader using shaderc to Spir-V binaries.

The main goal is to make sure that the GLSL created using ShaderCreateInfo and able to compile to Spir-V.
For the second stage a correct pipeline needs to be created and some shader would need more
adjustments (push constants size).

With this patch future changes to GLSL sources can already be checked against vulkan, without the
backend finished.

Mechanism has been tested using MacOS and MoltenVK. For other OS, we should finetune CMake
files to find the right location to shaderc.

```
************************************************************
*** Build Mon 12 Dec 2022 11:08:07 CET
************************************************************
Shader Test compilation result: 463 / 463 passed (skipped 118 for compatibility reasons)
OpenGL backend shader compilation succeeded.
Shader Test compilation result: 529 / 529 passed (skipped 52 for compatibility reasons)
Vulkan backend shader compilation succeeded.
```

Reviewed By: fclem

Maniphest Tasks: T102760

Differential Revision: https://developer.blender.org/D16610
2022-12-12 12:25:22 +01:00
..
config Build: library updates for Blender 3.5 2022-12-07 15:28:17 +01:00
example_scripts File headers: add missing copyright, add MIT to SPDX licenses 2022-02-11 14:56:03 +11:00
Modules Build: library updates for Blender 3.5 2022-12-07 15:28:17 +01:00
platform GPU: Compile vulkan shaders to Spir-V binaries. 2022-12-12 12:25:22 +01:00
buildinfo.cmake Fix T100905: Official releases have the wrong branch in buildinfo 2022-11-16 14:55:25 +01:00
buildinfo_static.h.in CMake: configue_file() to pass strings for build-info 2020-11-06 17:26:29 +11:00
clang_array_check.py Cleanup: run autopep8 on build_files/ 2022-04-20 15:08:46 +10:00
cmake_netbeans_project.py Cleanup: remove "<pep8 compliant>" from headers 2022-06-02 20:16:20 +10:00
cmake_print_build_options.py File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
cmake_qtcreator_project.py Cleanup: remove "<pep8 compliant>" from headers 2022-06-02 20:16:20 +10:00
cmake_static_check_clang_array.py Cleanup: remove "<pep8 compliant>" from headers 2022-06-02 20:16:20 +10:00
cmake_static_check_cppcheck.py check_cppcheck: skip files that hang, minor improvements 2022-08-23 11:01:02 +10:00
cmake_static_check_smatch.py Cleanup: remove "<pep8 compliant>" from headers 2022-06-02 20:16:20 +10:00
cmake_static_check_sparse.py Cleanup: remove "<pep8 compliant>" from headers 2022-06-02 20:16:20 +10:00
cmake_static_check_splint.py Cleanup: remove "<pep8 compliant>" from headers 2022-06-02 20:16:20 +10:00
have_features.cmake CMake: support building with musl libc 2022-08-18 08:12:56 +10:00
macros.cmake Windows: install shared libraries in blender.shared 2022-12-07 15:28:17 +01:00
packaging.cmake Fix T98726: Include blender version number in windows shortcuts 2022-11-20 18:31:00 -07:00
project_info.py Cleanup: remove "<pep8 compliant>" from headers 2022-06-02 20:16:20 +10:00
project_source_info.py Fix error extracting arguments from project_source_info 2022-09-09 17:18:11 +10:00
RpmBuild.cmake File headers: use SPDX license for CMake files 2022-02-11 14:23:56 +11:00