mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Allow constructing rdcfixedarray with a fixed size array
This commit is contained in:
@@ -888,6 +888,11 @@ public:
|
||||
return *this;
|
||||
}
|
||||
rdcfixedarray() = default;
|
||||
rdcfixedarray(const T (&in)[N])
|
||||
{
|
||||
for(size_t i = 0; i < N; i++)
|
||||
elems[i] = in[i];
|
||||
}
|
||||
rdcfixedarray(const std::initializer_list<T> &in)
|
||||
{
|
||||
static_assert(std::is_trivial<T>::value,
|
||||
|
||||
Reference in New Issue
Block a user