2026-04-01 00:49:28 -06:00
|
|
|
#pragma once
|
|
|
|
|
|
2022-08-02 16:37:56 -04:00
|
|
|
#include <webgpu/webgpu_cpp.h>
|
2022-08-09 02:05:33 -04:00
|
|
|
|
2025-04-03 21:03:08 -06:00
|
|
|
#include <string_view>
|
|
|
|
|
|
2022-08-09 02:05:33 -04:00
|
|
|
static inline bool operator==(const wgpu::Extent3D& lhs, const wgpu::Extent3D& rhs) {
|
|
|
|
|
return lhs.width == rhs.width && lhs.height == rhs.height && lhs.depthOrArrayLayers == rhs.depthOrArrayLayers;
|
|
|
|
|
}
|
|
|
|
|
static inline bool operator!=(const wgpu::Extent3D& lhs, const wgpu::Extent3D& rhs) { return !(lhs == rhs); }
|
2025-04-03 21:03:08 -06:00
|
|
|
|
|
|
|
|
namespace wgpu {
|
|
|
|
|
inline std::string_view format_as(wgpu::StringView str) { return str; }
|
|
|
|
|
} // namespace wgpu
|