libcruft-vk/tools/info.cpp

39 lines
1013 B
C++
Raw Normal View History

/*
2018-08-04 15:24:36 +10:00
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* Copyright:
* 2017-2018, Danny Robson <danny@nerdcruft.net>
*/
#include <cruft/util/iterator/infix.hpp>
2017-09-05 17:20:17 +10:00
#include "load/ostream.hpp"
#include "load/vtable.hpp"
#include "instance.hpp"
#include "physical_device.hpp"
#include "ostream.hpp"
#include <iostream>
2017-09-05 17:20:17 +10:00
2019-03-03 11:53:31 +11:00
#include "../load/vendor.hpp"
#include "load/vtable.hpp"
2018-08-24 17:33:09 +10:00
///////////////////////////////////////////////////////////////////////////////
int
main (int, char**)
{
cruft::vk::instance instance;
std::cout << "[ "
<< "available_layers: [ "
<< cruft::iterator::make_infix (cruft::vk::instance::available_layers ())
<< " ] }"
<< ", instance: " << instance
<< ", devices: [ " << cruft::iterator::make_infix (cruft::vk::physical_device::find (instance)) << " ], "
<< " } ]\n";
}