NXTTest: Make GTest print the name of the backend

This commit is contained in:
Corentin Wallez 2017-07-14 17:59:27 -04:00 committed by Corentin Wallez
parent 23620b0dc7
commit 55ebc25c0f
2 changed files with 5 additions and 0 deletions

View File

@ -277,6 +277,10 @@ std::ostream& operator<< (std::ostream& stream, const RGBA8& color) {
static_cast<int>(color.a) << ")";
}
std::ostream &operator<<(std::ostream& stream, BackendType backend) {
return stream << ParamName(backend);
}
namespace detail {
bool IsBackendAvailable(BackendType type) {
switch (type) {

View File

@ -47,6 +47,7 @@ enum BackendType {
VulkanBackend,
NumBackendTypes,
};
std::ostream &operator<<(std::ostream& stream, BackendType backend);
namespace utils {
class BackendBinding;