NXTTest: Make GTest print the name of the backend
This commit is contained in:
parent
23620b0dc7
commit
55ebc25c0f
|
@ -277,6 +277,10 @@ std::ostream& operator<< (std::ostream& stream, const RGBA8& color) {
|
||||||
static_cast<int>(color.a) << ")";
|
static_cast<int>(color.a) << ")";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::ostream &operator<<(std::ostream& stream, BackendType backend) {
|
||||||
|
return stream << ParamName(backend);
|
||||||
|
}
|
||||||
|
|
||||||
namespace detail {
|
namespace detail {
|
||||||
bool IsBackendAvailable(BackendType type) {
|
bool IsBackendAvailable(BackendType type) {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
|
|
@ -47,6 +47,7 @@ enum BackendType {
|
||||||
VulkanBackend,
|
VulkanBackend,
|
||||||
NumBackendTypes,
|
NumBackendTypes,
|
||||||
};
|
};
|
||||||
|
std::ostream &operator<<(std::ostream& stream, BackendType backend);
|
||||||
|
|
||||||
namespace utils {
|
namespace utils {
|
||||||
class BackendBinding;
|
class BackendBinding;
|
||||||
|
|
Loading…
Reference in New Issue