Miguel Pozo
992e7c95a7
GPU: Converge ShaderCompiler implementations
...
Part of #136993 .
Share as much of the ShaderCompiler implementations as possible.
Remove the ShaderCompiler/ShaderCompilerGeneric split and make most of
its functions non virtual.
Move the `get_compiler` function from `Context` to `GPUBackend` and
creation/deletion to `GPUBackend::init/delete_resources`.
Add a `batch_cancel` function to `ShaderCompiler` (needed for the
GPUPass refactor).
As a nice extra, the multithreaded OpenGL compilation has become faster
too.
The barbershop materials + EEVEE static shaders have gone from 27s to
22s.
I have not observed any performance difference on Vulkan or Metal.
Pull Request: https://projects.blender.org/blender/blender/pulls/136676
2025-05-08 18:16:47 +02:00
..
2025-05-06 14:27:43 +02:00
2025-04-11 22:39:01 +02:00
2025-05-08 18:16:47 +02:00
2025-05-08 18:16:47 +02:00
2025-05-06 14:27:43 +02:00
2025-05-06 14:27:43 +02:00
2025-05-06 14:27:43 +02:00
2025-05-06 14:27:43 +02:00
2025-04-24 15:53:21 +02:00
2025-04-08 14:10:01 +02:00
2025-05-08 18:16:47 +02:00
2025-05-08 18:16:47 +02:00
2025-05-06 14:27:43 +02:00
2025-05-06 14:27:43 +02:00
2025-01-27 08:55:23 +01:00
2024-11-01 20:00:31 +01:00
2025-04-17 15:34:52 +02:00
2025-05-02 12:42:20 +02:00
2024-11-25 13:20:14 +11:00
2025-03-25 12:47:28 +01:00
2025-03-17 09:06:47 +01:00
2025-04-15 12:18:34 +02:00
2025-04-01 16:01:22 +02:00
2025-05-05 18:38:37 +02:00
2025-05-05 09:59:00 +02:00
2025-01-27 08:55:23 +01:00
2025-01-27 08:55:23 +01:00
2025-04-01 15:06:13 +02:00
2025-03-17 09:06:47 +01:00
2024-12-02 14:50:32 +01:00
2025-01-27 08:55:23 +01:00
2024-06-25 15:15:18 +02:00
2025-04-07 17:26:13 +02:00
2024-11-28 16:31:58 +01:00
2025-01-24 11:54:59 +01:00
2024-12-16 10:09:33 +01:00
2025-04-11 22:39:01 +02:00
2025-04-11 22:39:01 +02:00
2025-04-04 16:01:06 +02:00
2025-05-02 10:40:23 +02:00
2025-04-07 17:26:13 +02:00
2025-04-28 11:38:56 +02:00
2025-04-28 11:38:56 +02:00
2024-12-16 10:09:33 +01:00
2025-03-13 16:21:28 +01:00
2025-04-15 12:18:34 +02:00
2024-08-20 11:27:33 +02:00
2025-04-17 15:34:52 +02:00
2025-04-15 12:18:34 +02:00
2025-01-27 08:55:23 +01:00
2024-11-16 23:10:44 +01:00
2025-05-02 13:24:06 +02:00
2023-11-14 11:12:19 +01:00
2024-09-26 10:59:45 +02:00
2025-04-08 09:35:41 +02:00
2025-05-08 18:16:47 +02:00
2025-05-08 18:16:47 +02:00
2025-04-24 14:38:13 +02:00
2024-11-27 19:01:00 +11:00
2024-10-29 18:08:25 +01:00
2024-01-01 00:43:09 +13:00
2025-01-27 08:55:23 +01:00
2024-10-08 10:55:10 +02:00
2025-05-05 09:59:00 +02:00
2025-04-04 14:23:09 +02:00
2025-03-11 10:14:00 +01:00
2025-03-11 10:14:00 +01:00
2024-11-27 17:37:04 +01:00
2024-11-27 17:37:04 +01:00
2025-02-17 08:58:06 +01:00
2025-02-17 08:58:06 +01:00
2025-05-01 11:44:33 +10:00
2025-04-04 16:01:06 +02:00
2025-01-13 08:10:31 +01:00
2024-05-10 15:39:56 +02:00
2025-01-04 20:06:15 +11:00
2025-01-24 11:54:59 +01:00
2024-12-16 10:09:33 +01:00
2025-04-11 22:39:01 +02:00
2024-09-23 15:10:57 +02:00
2025-05-06 14:27:43 +02:00
2025-05-06 14:27:43 +02:00