Kode / Kinc

Modern low level game library and hardware abstraction.
http://kinc.tech
zlib License
512 stars 122 forks source link

[Vulkan] Fix handling of render target depth #820

Closed luboslenco closed 10 months ago

luboslenco commented 10 months ago

This restores the functionality of using render targets with depth buffers in Vulkan.

Using multiple render targets is still broken, because the shared render pass is set to only 1 color attachment (and only VK_FORMAT_B8G8R8A8_UNORM format) .

https://github.com/Kode/Kinc/blob/main/Backends/Graphics5/Vulkan/Sources/kinc/backend/graphics5/vulkan.h#L54

Should more render pass combinations be created in advance or on demand?

RobDangerous commented 10 months ago

Think I'll have to extend the API a bit, also for Metal. But please create a GitHub issue about it.