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) << ")";
|
||||
}
|
||||
|
||||
std::ostream &operator<<(std::ostream& stream, BackendType backend) {
|
||||
return stream << ParamName(backend);
|
||||
}
|
||||
|
||||
namespace detail {
|
||||
bool IsBackendAvailable(BackendType type) {
|
||||
switch (type) {
|
||||
|
|
|
@ -47,6 +47,7 @@ enum BackendType {
|
|||
VulkanBackend,
|
||||
NumBackendTypes,
|
||||
};
|
||||
std::ostream &operator<<(std::ostream& stream, BackendType backend);
|
||||
|
||||
namespace utils {
|
||||
class BackendBinding;
|
||||
|
|
Loading…
Reference in New Issue