b-editor / beutl

Cross-platform video editing (compositing) software.
https://beutl.beditor.net
MIT License
280 stars 15 forks source link

Shader functions with GLSL/SKSL #1098

Open yuto-trd opened 4 weeks ago

yuto-trd commented 4 weeks ago

Is your feature request related to a problem? Please describe.

Currently, GPU pixel manipulation uses ILGPU, but macOS and other platforms use the CPU instead of the GPU. Also, using ILGPU requires at least two copies of memory, which is redundant.

SKSurface (OpenGL) -> CPU memory -> OpenCL memory

Therefore, I would like to implement a shader function that can directly manipulate the SKSurface.

Describe the solution you'd like

Use SKRuntimeShader or OpenGL APIs directly

Describe alternatives you've considered

No response

Additional context

No response