}
}
+unsigned get_vulkan_attachment_layout(PixelComponents comp)
+{
+ switch(comp)
+ {
+ case DEPTH_COMPONENT:
+ case STENCIL_INDEX: return VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL;
+ default: return VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL;
+ }
+}
+
PixelFormat pixelformat_from_vulkan(unsigned vkf)
{
switch(vkf)