khalladay / VulkanDemoProjects

Small Demo Projects for Vulkan

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question regarding texture array size

io7m opened this issue · comments

Hello!

I enjoyed reading your "Using Arrays of Textures in Vulkan Shaders" blog post. It cleared up a few things I'd been wondering about during my attempt to educate myself about Vulkan having only known OpenGL 3.3.

One thing I'm curious about: Do you happen to know what parts of the Vulkan spec might indicate sensible maximum values for the sizes of texture arrays? I'd like to size my arrays based on reported device capabilities.

To answer my own question years later: The relevant device limit is maxPerStageDescriptorSampledImages, which is 8388606 on my AMD RADV NAVI10 workstation.

Sorry I missed this years ago, glad you found the answer though :)

No problem. I get enough GitHub notifications to miss a few dozen here and there. 😄