libcruft-vk/tools/info.cpp

44 lines
1.1 KiB
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>
*/
2017-09-05 17:20:17 +10:00
#include <cruft/util/iterator.hpp>
#include <cruft/vk/icd/vtable.hpp>
#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
2018-08-24 17:33:09 +10:00
#include "../icd/vendor.hpp"
#include "icd/vtable.hpp"
2018-08-24 17:33:09 +10:00
///////////////////////////////////////////////////////////////////////////////
int
main (int, char**)
{
2018-09-08 12:31:43 +10:00
for (auto const &i: cruft::vk::icd::enumerate ()) {
2018-08-24 17:33:09 +10:00
cruft::vk::icd::vendor v (i);
cruft::vk::icd::g_table = &v.vtable;
2018-08-24 17:33:09 +10:00
2018-09-08 12:31:43 +10:00
//std::cout << "available_layers: [ "
// << cruft::make_infix (cruft::vk::instance::available_layers ())
// << " ]\n";
2017-09-05 17:20:17 +10:00
2018-09-08 12:31:43 +10:00
cruft::vk::instance instance;
std::cout << "instance: " << instance << '\n';
//for (const auto &d: cruft::vk::physical_device::find (instance))
// std::cout << d << '\n';
2018-09-08 12:31:43 +10:00
}
}