mirror of
https://github.com/encounter/aurora.git
synced 2026-07-09 18:19:33 -07:00
15 lines
491 B
C++
15 lines
491 B
C++
#pragma once
|
|
|
|
#include <webgpu/webgpu_cpp.h>
|
|
|
|
#include <string_view>
|
|
|
|
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); }
|
|
|
|
namespace wgpu {
|
|
inline std::string_view format_as(wgpu::StringView str) { return str; }
|
|
} // namespace wgpu
|