Benjamin Otte
4954e6962f
vulkan: Remove the VulkanOp.upload() vfunc
...
It's not used anymore.
2023-07-16 13:16:43 +02:00
Benjamin Otte
2aba50efa0
vulkan: Move the render ops to the Render
...
This is a massive refactoring because it collects all the renderops
of all renderpasses into one long array in the Render object.
Lots of code in there is still flaky and needs cleanup. That will
follow in further commits.
Other than that it does work fine though.
2023-07-16 12:13:00 +02:00
Benjamin Otte
21d2372396
vulkan: Unify some functions
...
All the ops that just execute a shader do pretty much the same stuff, so
put it all in a single function that they all call.
It's basically faking a base class for them.
2023-07-16 12:13:00 +02:00
Benjamin Otte
c0b185bee9
vulkan: Make Op->command() return the next op
...
This way, ops can batch themselves.
They don't dothat yet, but you know where this is going...
2023-07-16 12:13:00 +02:00
Benjamin Otte
da4a4f6a25
vulkan: Add a Stage enum
...
It's declaring at which stage this command should run. So far nothing is
using it, but that will follow in future commits.
2023-07-16 12:13:00 +02:00
Benjamin Otte
a6b2bcbf24
vulkan: Remove unused arguments from Op vfuncs
...
Makes code a lot simpler.
2023-07-16 12:13:00 +02:00
Benjamin Otte
d86d4c5597
vulkan: Add infrastructure for printing ops
...
... and add a GSK_DEBUG=verbose setting making use of it.
2023-07-16 12:13:00 +02:00
Benjamin Otte
a621bd066b
vulkan: Remove op.get_pipeline()
...
It's unused now that GskVulkanPipeline is gone.
2023-07-16 12:13:00 +02:00
Benjamin Otte
58c318a4dc
vulkan: Add gskvulkanprivate.h
...
It's the new place for all the common stuff.
Because the old place is about to go away.
2023-07-16 12:13:00 +02:00
Benjamin Otte
efa4cae949
vulkan: Remove hacky function arguments
...
They're unused now that we removed the old render ops.
2023-07-16 12:12:36 +02:00
Benjamin Otte
5e72914c48
vulkan: Port linear gradient to new ops
...
This was the last user of GskVulkanOpRender, so delete that one, too.
2023-07-16 12:12:36 +02:00