Fix creating chained structs in wgpu

This commit is contained in:
Nikita Lisitsa 2024-11-14 13:47:13 +03:00
parent ce8547c8d3
commit e6ae945b92

View file

@ -65,8 +65,8 @@ namespace psemek::wgpu
struct chained_struct
{
template <typename T>
chained_struct(T const & value)
: impl_(to_chained_struct(value))
chained_struct(T && value)
: impl_(to_chained_struct(std::move(value)))
{}
void * ptr() const