Skip to content
Snippets Groups Projects
  1. Apr 02, 2025
  2. Mar 19, 2025
  3. Mar 18, 2025
  4. Mar 17, 2025
    • Giovanni Mascellani's avatar
      tests: Mark a test about resource aliasing as todo on MoltenVK. · e418bbcf
      Giovanni Mascellani authored
      As far as I know there is no way to implement this properly on
      Vulkan, and all the other Vulkan implementations essentially work
      by luck. In Vulkan the initial layout of a resource must always be
      UNDEFINED or PREINITIALIZED and it must be transitioned away from
      before any meaningful use of that image is done. Therefore it's
      possible to alias two images and let the second one inherit the
      content in the first one only if both already exist (and are in
      the same layout) before the first writing is done. If, as in this
      example, the second image is created after the first one has
      already been written to, the obligatory transition away from
      UNDEFINED or PREINITIALIZED will potentially wipe out the content.
      
      Therefore I am marking this as todo, not as a bug. I might also be
      that there is a bug in MoltenVK, and ultimately that's the reason
      why we're reading invalid data, but technically the Vulkan
      commands we generate are incorrect anyway.
      e418bbcf
Loading