Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Add VK_EXT_image_2d_view_of_3d support #2332

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Commits on Oct 17, 2024

  1. Add VK_EXT_image_2d_view_of_3d support

    Given a 3D texture that is backed by a placement heap in MoltenVK, the
    approach taken here is to create a 2D texture that is backed by memory
    pointing into a 3D texture's memory.
    
    While ideal compared to alternative implementation solutions for this
    extension, this approach is sensitive to how Apple lays out the memory
    for 3D textures. The solution here uses
    heapTextureSizeAndAlignWithDescriptor to determine the overall size of a
    given 3D texture and index into the beginning of each "slice" of the 3D
    texture. So far this is good enough for storage images in CTS.
    ncesario-lunarg committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    574a35d View commit details
    Browse the repository at this point in the history
  2. Disable sampler2DViewOf3D

    Sets VkPhysicalDeviceImage2DViewOf3DFeaturesEXT::sampler2DViewOf3D to
    false, as CTS tests involving 2D views of sampled 3D textures are not
    currently working.
    ncesario-lunarg committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    ce6e1fc View commit details
    Browse the repository at this point in the history