Add wgpu::buffer::usage operator |
This commit is contained in:
parent
8ff0adb710
commit
78a131952b
1 changed files with 5 additions and 0 deletions
|
|
@ -88,4 +88,9 @@ namespace psemek::wgpu
|
||||||
friend struct device;
|
friend struct device;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
inline buffer::usage operator | (buffer::usage u1, buffer::usage u2)
|
||||||
|
{
|
||||||
|
return static_cast<buffer::usage>(static_cast<std::uint32_t>(u1) | static_cast<std::uint32_t>(u2));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue