PanosK92 / SpartanEngine

A game engine with an emphasis on real-time cutting-edge solutions
https://panoskarabelas.com
MIT License
2.24k stars 189 forks source link

Switch to bindless #133

Closed PanosK92 closed 11 months ago

PanosK92 commented 11 months ago

Switching to bindless textures involves transitioning from traditional bound texture methods to a bindless approach. This allows for more efficient management of numerous textures, as it removes the need to bind textures to specific slots before drawing. This change can significantly improve performance and flexibility in rendering complex scenes with many textures.

The samplers have been switched to bindless, so there is some example code: https://github.com/PanosK92/SpartanEngine/blob/076636d560946aaabdd5b88536274b30deaa4806/runtime/RHI/Vulkan/Vulkan_Device.cpp#L421C8-L421C8

PanosK92 commented 11 months ago

dibs on that, will deliver tonight

PanosK92 commented 11 months ago

done