2017-05-26 16:33:29 +10:00
|
|
|
/*
|
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/.
|
2017-05-26 16:33:29 +10:00
|
|
|
*
|
|
|
|
* Copyright:
|
2018-09-10 13:21:02 +10:00
|
|
|
* 2017-2018, Danny Robson <danny@nerdcruft.net>
|
2017-05-26 16:33:29 +10:00
|
|
|
*/
|
|
|
|
|
2019-03-18 16:19:30 +11:00
|
|
|
#include <cruft/util/iterator/infix.hpp>
|
2017-09-05 17:20:17 +10:00
|
|
|
|
2019-03-03 11:53:31 +11:00
|
|
|
#include <cruft/vk/load/ostream.hpp>
|
|
|
|
#include <cruft/vk/load/vtable.hpp>
|
2019-01-05 23:30:52 +11:00
|
|
|
|
2017-05-26 16:33:29 +10:00
|
|
|
#include <cruft/vk/instance.hpp>
|
|
|
|
#include <cruft/vk/physical_device.hpp>
|
|
|
|
#include <cruft/vk/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
|
|
|
|
|
|
|
|
2017-05-26 16:33:29 +10:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
int
|
|
|
|
main (int, char**)
|
|
|
|
{
|
2019-03-03 12:59:51 +11:00
|
|
|
cruft::vk::instance instance;
|
|
|
|
|
|
|
|
std::cout << "[ "
|
|
|
|
<< "available_layers: [ "
|
2019-03-18 16:19:30 +11:00
|
|
|
<< cruft::iterator::make_infix (cruft::vk::instance::available_layers ())
|
2019-03-03 12:59:51 +11:00
|
|
|
<< " ] }"
|
|
|
|
<< ", instance: " << instance
|
2019-03-18 16:19:30 +11:00
|
|
|
<< ", devices: [ " << cruft::iterator::make_infix (cruft::vk::physical_device::find (instance)) << " ], "
|
2019-03-03 12:59:51 +11:00
|
|
|
<< " } ]\n";
|
2017-05-26 16:33:29 +10:00
|
|
|
}
|