Skip to content

Commit ae8b97c

Browse files
rudybearmeta-codesync[bot]
authored andcommitted
igl | Add static_assert for command statistics triviality
Reviewed By: corporateshark Differential Revision: D112598850 fbshipit-source-id: 00d1b4da4144985f163ad5b888ce73650459046b
1 parent e33d8b4 commit ae8b97c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/igl/Device.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,16 @@
88
#include <igl/Device.h>
99

1010
#include <algorithm>
11+
#include <type_traits>
12+
#include <igl/CommandBuffer.h>
13+
#include <igl/CommandQueue.h>
1114
#include <igl/Framebuffer.h>
1215

1316
namespace igl {
1417

18+
static_assert(std::is_trivially_copyable_v<CommandQueueStatistics>);
19+
static_assert(std::is_trivially_copyable_v<CommandBufferStatistics>);
20+
1521
bool IDevice::defaultVerifyScope() {
1622
return scopeDepth_ > 0;
1723
}

0 commit comments

Comments
 (0)