GPU: Shader Create Info GLSL-C++ stubs #3

Closed
Clément Foucault wants to merge 90 commits from create-info-cpp-macros into glsl-include

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

90 Commits

Author SHA1 Message Date
20112f00be EEVEE: Fix samplerGBuffer macros 2024-09-28 19:47:29 +02:00
152852e877 Fix interface types not being defined 2024-09-28 19:47:09 +02:00
9e190764c7 Enable EEVEE infos 2024-09-28 19:32:58 +02:00
89794ba18d Mass rename eevee infos 2024-09-28 19:31:25 +02:00
4aa10287d2 Remove macro for buffer types 2024-09-28 19:27:39 +02:00
b64ba8b719 Enable ovelray infos 2024-09-28 18:28:15 +02:00
d98723d27e Mass rename overlay infos 2024-09-28 18:24:10 +02:00
72944075e8 Remove trailing semicolon 2024-09-28 18:23:55 +02:00
fcad801b87 Enable basic, image, gpencil, select engine infos 2024-09-28 18:22:43 +02:00
cde71b4826 Add basic, image, gpencil, select engine infos 2024-09-28 18:20:36 +02:00
577d237f6f Remove trailing semicolon 2024-09-28 18:19:56 +02:00
c8f0aba880 Add workbenhc info includes 2024-09-28 18:17:52 +02:00
1550f62b3d Mass rename workbench infos 2024-09-28 18:03:38 +02:00
17fec8578b Manually port workbench shadow infos 2024-09-28 18:02:54 +02:00
181785fdc5 Add macro to expand additional infos inside variations macro 2024-09-28 17:57:14 +02:00
d9bddad56c Fix weird syntax not passing regex replacement 2024-09-28 13:26:36 +02:00
871e3e2e4f fixes to draw defines 2024-09-28 13:17:23 +02:00
9522d41dd5 Add draw create info includes 2024-09-28 13:10:10 +02:00
18663835c8 Rename draw infos 2024-09-28 13:00:37 +02:00
7be82143d4 Add includes for builtin shaders 2024-09-28 12:58:10 +02:00
083f51bef4 Add smoothstep overload for scalars 2024-09-28 12:56:48 +02:00
0123440303 Add constant accessor operators 2024-09-28 12:56:20 +02:00
a4ef239b4f Macro rename builtin shader infos 2024-09-28 12:41:18 +02:00
fd8bba622d Allow 1 length vector to auto cast to scalar 2024-09-28 12:40:20 +02:00
6c09660fdd Fix compilation 2024-09-28 12:39:48 +02:00
31fd8d1d8c Add compositor includes 2024-09-28 12:39:36 +02:00
d0f7c26cf1 Mass rename compositor and gpu builtin shaders infos 2024-09-28 12:24:37 +02:00
8ff5fc1e24 Revert "Mass rename"
This reverts commit 06abbd972b.
2024-09-28 12:01:15 +02:00
34fc5cedf6 Revert "Remaining macros renaming"
This reverts commit bf0cf3f64f.
2024-09-28 12:01:08 +02:00
27fd5cfcf6 Fix stubs 2024-09-28 12:00:44 +02:00
2663bdddb3 Fix macros 2024-09-28 12:00:25 +02:00
bf0cf3f64f Remaining macros renaming 2024-09-28 11:51:14 +02:00
186af04072 Fix wrong define 2024-09-28 11:45:48 +02:00
06abbd972b Mass rename 2024-09-28 11:42:19 +02:00
0011036cba Fix macros 2024-09-28 11:41:09 +02:00
da1badea7d Add stubs for uppercase types 2024-09-28 11:40:48 +02:00
44ca8e3367 Fix missing samplerBuffer types 2024-09-28 11:40:28 +02:00
4f6865f6bd Fix macros 2024-09-28 01:09:12 +02:00
c1adba5683 Fix macro 2024-09-27 21:16:41 +02:00
5b2a56ca03 Fix defines 2024-09-27 20:27:56 +02:00
6f6493ba3e Make eevee_shader_shared work with GLSL_CPP_STUBS 2024-09-26 21:28:17 +02:00
6e3c1b27c8 Add macros for each create info type and SHADER_LIBRARY_CREATE_INFO 2024-09-26 21:27:57 +02:00
af3454742e Fix compilation 2024-09-26 18:39:32 +02:00
2888380ffe Add all infos to the stub file 2024-09-26 17:58:20 +02:00
c7052aca58 Fix ambiguous namespace error 2024-09-26 17:54:26 +02:00
69027ddbd9 Unroll variadic additional_infos 2024-09-26 17:53:05 +02:00
360970121d Use namespaces for different interfaces 2024-09-26 17:22:33 +02:00
5554ffd998 Fix macros and make it compile 2024-09-26 17:22:33 +02:00
10dabf236a Update GPU_SHADER_INTERFACE_INFO usage 2024-09-26 17:22:33 +02:00
eaf577f654 Example usage 2024-09-26 17:22:33 +02:00
2e657ac4ca Port of gpu_shader_icon 2024-09-26 17:22:33 +02:00
601da1c78f Make macro work 2024-09-26 17:22:33 +02:00
2dacd2a9b3 Macro work 2024-09-26 17:22:33 +02:00
e145811e71 Add shared declarations and avoid GPU_shader_shared_utils to mess with stubs 2024-09-26 17:04:47 +02:00
052c1fe354 Remove clang-format off for swizzle 2024-09-26 16:46:30 +02:00
d00d870cf8 Add shader shared 2024-09-26 16:43:57 +02:00
9e8c2a9fe7 Remove GPU_SHADER guard as it won't get included for shader anymore 2024-09-26 16:43:57 +02:00
3017a7d6b6 Use references for swizzle (GCC compatible) and use single line. 2024-09-26 16:43:57 +02:00
df54449678 Add shared keyword 2024-09-26 16:43:57 +02:00
9f191c31f5 Add compute shader functions 2024-09-26 16:43:57 +02:00
684cdd792d Put namespaces for special variables 2024-09-26 16:43:57 +02:00
fc0b9efd5e Compute shader builtins 2024-09-26 16:43:57 +02:00
fc233a2501 Compiler compatibility 2024-09-26 16:43:57 +02:00
9066c90b3e Fix a few errors on some compilers 2024-09-26 16:43:57 +02:00
bfc53ec214 Fix sign 2024-09-26 16:43:57 +02:00
0f7c26c72a Add usage documentation 2024-09-26 16:43:57 +02:00
3745cc4555 Add atomic functions 2024-09-26 16:43:57 +02:00
ede38b7d98 Matrix scalar constructors, more documentation 2024-09-26 16:43:57 +02:00
9d05520391 Add sections, add documentation, fix integer ops, fix image types 2024-09-26 16:43:57 +02:00
20d11b10e4 Guard against GLSL / MSL include 2024-09-26 16:43:57 +02:00
e73430e359 Add array syntax compatibility 2024-09-26 16:43:57 +02:00
04a22845e9 Remove unused parameters 2024-09-26 16:43:57 +02:00
88fb3cdf1d Some missing functions 2024-09-26 16:43:57 +02:00
4f48b6fa60 Matrices 2024-09-26 16:43:57 +02:00
4592d2f6c6 Remove vector ops argument names 2024-09-26 16:43:57 +02:00
ae91a46e37 Add builtin and keywords 2024-09-26 16:43:57 +02:00
ddc4e33fbc Add color swizzle 2024-09-26 16:43:57 +02:00
d917537e2c Builtin functions 2024-09-26 16:43:57 +02:00
552be099cb Add optional bias to texture function 2024-09-26 16:43:57 +02:00
f3759f717c Simplify vector ops and remove vec1 2024-09-26 16:43:57 +02:00
0738573cfc Boolean vectors 2024-09-26 16:43:57 +02:00
4568437b04 Add vector explicit casts 2024-09-26 16:43:57 +02:00
01c1a2e60f image stubs 2024-09-26 16:43:57 +02:00
fcd3772baf Int vectors alias 2024-09-26 16:43:57 +02:00
cb7624eeef Add texture stubs 2024-09-26 16:43:57 +02:00
f74f36b32e Add 1 component vector with auto cast 2024-09-26 16:43:56 +02:00
e67be951bb Fix typo 2024-09-26 16:43:56 +02:00
554b83ee52 Cleanup macros 2024-09-26 16:43:56 +02:00
3cfff3249a Cleanup template and dependency, support recursive swizzle 2024-09-26 16:43:56 +02:00
36a3ff07ce Experiment with C++ stubs 2024-09-26 16:43:56 +02:00