mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-06 21:25:58 +00:00
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…
x
Reference in New Issue
Block a user