meta/info: correctly balance some braces in JSON output

This commit is contained in:
Danny Robson 2019-06-20 16:32:34 +10:00
parent 91cc9ea3fe
commit c4b7e2bf72

View File

@ -29,13 +29,11 @@ cruft::vk::meta::operator<< (std::ostream &os, info const &)
{ {
cruft::vk::instance instance; cruft::vk::instance instance;
os << "[ " return os << "{ available_layers: [ "
<< "available_layers: [ " << cruft::iterator::make_infix (cruft::vk::instance::available_layers ())
<< cruft::iterator::make_infix (cruft::vk::instance::available_layers ()) << " ]"
<< " ] }" << ", instance: " << instance
<< ", instance: " << instance << ", devices: [ "
<< ", devices: [ " << cruft::iterator::make_infix (cruft::vk::physical_device::find (instance)) << " ], " << cruft::iterator::make_infix (cruft::vk::physical_device::find (instance)) << " ]"
<< " } ]\n"; << ", }";
return os;
} }