FNA-XNA / FNA3D

FNA3D - 3D Graphics Library for FNA
http://fna-xna.github.io/
Other
281 stars 46 forks source link

Move Vulkan defrag state into FNA3D_Defragmenter #175

Closed flibitijibibo closed 4 months ago

flibitijibibo commented 1 year ago

After #174 is done, both memory and command buffer management will be isolated from the Vulkan renderer - one nice side effect of this is that most of the defrag work now sits in driver implementations of the managers and not the renderer. With this in mind, we can move the defrag logic to a standalone framework that the memory/commandbuffer managers can interact with, making the defrag work almost entirely automatic from a renderer's point of view.

Once this is done, we will probably just want to combine Memory/CommandBuffer/Defragmenter into a unified helper called FNA3D_GPUManager or something.

flibitijibibo commented 4 months ago

SDL_gpu is doing the defrag work internally, so this is no longer needed.