Clément Foucault fclem
  • I'm pixel pusher.

  • Joined on 2014-07-09
Clément Foucault pushed to create-info-cpp-macros at fclem/blender 2024-09-24 23:09:11 +02:00
d69613426c Example usage
e1980a4889 Port of gpu_shader_icon
d1e84affc2 Make macro work
Compare 3 commits »
Clément Foucault created pull request fclem/blender#3 2024-09-24 21:50:40 +02:00
WIP: GPU: Shader Create Info GLSL-C++ stubs
Clément Foucault pushed to create-info-cpp-macros at fclem/blender 2024-09-24 21:44:53 +02:00
d79f99ee5c Macro work
Clément Foucault created branch create-info-cpp-macros in fclem/blender 2024-09-24 21:44:53 +02:00
Clément Foucault commented on pull request blender/blender#128076 2024-09-24 18:33:33 +02:00
GPU: Change GLSL include directive

Here is the regex I used for the renaming

#pragma BLENDER_REQUIRE\(([a-zA-Z0-9_\-\.]+)\)
#include "$1"
Clément Foucault pushed to glsl-include at fclem/blender 2024-09-24 18:30:07 +02:00
bdc189319a Fix EXC_BAD_ACCESS caused by modifying static memory page.
9c649eacdc Batch rename BLENDER_REQUIRE to include directive
Compare 2 commits »
Clément Foucault commented on issue blender/blender#127983 2024-09-24 18:01:48 +02:00
GPU: Improve GLSL workflow

I think it will be better to discuss around a working prototype as there is clearly some misunderstanding 😄.

Namespaces in GLSL?

The namespace are only for the C++ linting.

All the…

Clément Foucault commented on pull request blender/blender#127982 2024-09-24 17:24:06 +02:00
WIP: GPU: GLSL-C++ compilation stubs

Depends on the linter I guess. MSVC created errors. The others warnings. So better be on the safe side.

Clément Foucault commented on pull request blender/blender#127982 2024-09-24 17:21:48 +02:00
WIP: GPU: GLSL-C++ compilation stubs

Includes don't work for files that are not part of the CMake project unless they are relative.

This is why I added all the needed folders to the Cmake file. This also helps to know what you…

Clément Foucault commented on issue blender/blender#127983 2024-09-24 16:32:51 +02:00
GPU: Improve GLSL workflow

This would remove the defines from the C++ CreateInfo declaration, right?

I am not sure I understand this. If you mean it will replace the need for this kind of declaration: `readonly

Clément Foucault created pull request blender/blender#128076 2024-09-24 16:12:35 +02:00
WIP: GPU: Change GLSL include directive
Clément Foucault pushed to glsl-include at fclem/blender 2024-09-24 15:54:12 +02:00
2298f91476 Do inline transform of source to avoid memory allocations
55ea86aac2 Initial idea
Compare 2 commits »
Clément Foucault created branch glsl-include in fclem/blender 2024-09-24 15:54:12 +02:00
Clément Foucault commented on pull request blender/blender#127982 2024-09-24 14:13:04 +02:00
WIP: GPU: GLSL-C++ compilation stubs

It passes compilation on Clang and MSVC. GCC doesn't like the swizzle recursive classes. Yet, I think it is good enough for a first commit.

If someone wants to look at it, here is the godbolt…

Clément Foucault pushed to glsl-cpp-stubs at fclem/blender 2024-09-24 13:51:38 +02:00
17d20e6867 Compiler compatibility
Clément Foucault pushed to glsl-cpp-stubs at fclem/blender 2024-09-24 13:26:26 +02:00
53806d57a9 Fix a few errors on some compilers
Clément Foucault pushed to glsl-cpp-stubs at fclem/blender 2024-09-24 13:02:52 +02:00
ed62741b77 Fix sign
Clément Foucault pushed to glsl-cpp-stubs at fclem/blender 2024-09-24 12:57:16 +02:00
7e1934e073 Add usage documentation
Clément Foucault pushed to glsl-cpp-stubs at fclem/blender 2024-09-24 12:51:16 +02:00
8332b277e9 Add atomic functions
Clément Foucault pushed to glsl-cpp-stubs at fclem/blender 2024-09-24 12:32:00 +02:00
9db8c51872 Matrix scalar constructors, more documentation
3407ce0a35 Add sections, add documentation, fix integer ops, fix image types
Compare 2 commits »