ostream: add stub ostream operator for VkQueueFlags

This commit is contained in:
Danny Robson 2017-09-04 14:49:38 +10:00
parent 0aca2b3a9b
commit 79752421cb

View File

@ -40,6 +40,24 @@ operator<< (std::ostream &os, VkExtent3D val)
}
//-----------------------------------------------------------------------------
#if 0
std::ostream&
operator<< (std::ostream &os, VkQueueFlags val)
{
const char *names[4] = {};
int cursor = 0;
if (val & VK_QUEUE_GRAPHICS_BIT) names[cursor++] = "GRAPHICS";
if (val & VK_QUEUE_COMPUTE_BIT) names[cursor++] = "COMPUTE";
if (val & VK_QUEUE_TRANSFER_BIT) names[cursor++] = "TRANSFER";
if (val & VK_QUEUE_SPARSE_BINDING_BIT) names[cursor++] = "SPARSE_BINDING";
return os << "[ " << util::make_infix (util::make_view (names, names + cursor)) << " ]";
}
#endif
///////////////////////////////////////////////////////////////////////////////
static
std::ostream&