Open leios opened 2 months ago
Another strat: I could "just use" vulkan compute shaders. Notes:
I think this should be doable with much less boilerplate than typical vulkan applications because I won't need to make use of any standard mesh machinery and can directly write the the swap chain images.
I think (for simplicity), it is best to finish #4 with OpenCL and then come back to target Vulkan once everything is in place.
Again note that this is only if we care about realtime output. For anything that will be rendered as standalone images or videos, I don't need Vulkan
Another another option is to do what FlidX3D does and go straight OpenCL without Vulkan: https://github.com/ProjectPhysX/FluidX3D.
I think this involves mucking around with some X / Wayland code though.
Note that it seems to be relatively easy to remain compliant with Vulkan swap chain buffers: https://vulkan-tutorial.com/Drawing_a_triangle/Presentation/Swap_chain
We can just specify that the VkSurfaceFormatKHR
is something like VK_FORMAT_B8G8R8A8_SRGB
, which would be an 8 bit R, G, B, A in that order.