GPU: GLSL-C++ compilation stubs #4

Closed
Clément Foucault wants to merge 38 commits from glsl-cpp-stubs-2 into glsl-include

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

38 Commits

Author SHA1 Message Date
cc5c7ce829 Add const correctness to image write functions 2024-09-26 21:29:03 +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