What are the steps to create a texture from an array in Vulkan?
<p>I have a 2D array (256x16) that I need to load into a Vulkan style texture to sample from. In OpenGL, this would be accomplished simply enough with glTexImage2D or glTexSubImage2D. However, I don't know how to do the same thing in Vulkan.</p>

<p>The array is defined as follows:</p>

<pre><code>static const int triTable[256][16] =
{ { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 },
{ 0, 8, 3, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 },
...
...
{ 0, 3, 8, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 },
{ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 } };
</code></pre>