RenderKit / oidn

Intel® Open Image Denoise library
https://www.openimagedenoise.org/
Apache License 2.0
1.74k stars 160 forks source link

CUDA/Vulkan Interop for optimally tiled images #169

Closed christosa-rfpro closed 7 months ago

christosa-rfpro commented 1 year ago

Hi. It's currently possible to share the memory of Vulkan images that use linear tiling (VK_IMAGE_TILING_LINEAR). Do you also plan to support optimally tiled images (VK_IMAGE_TILING_OPTIMAL)?

atafra commented 1 year ago

Hi. Currently images can be shared only through buffer sharing. This way only VK_IMAGE_TILING_LINEAR can be supported because VK_IMAGE_TILING_OPTIMAL is an unknown, device-dependent layout.

So to be able to share images with VK_IMAGE_TILING_OPTIMAL layout, buffer sharing cannot be used, and image/texture sharing would be necessary. This may be supported in the future but there are no immediate plans for this yet.

christosa-rfpro commented 1 year ago

Fair enough, thanks.