More error checks

This commit is contained in:
jpekkila
2019-10-07 17:00:23 +03:00
parent 48c6174319
commit 66cfcefb34
2 changed files with 10 additions and 7 deletions

View File

@@ -29,6 +29,9 @@
#include <assert.h>
static_assert(NUM_VTXBUF_HANDLES > 0,
"ERROR: NUM_VTXBUF_HANDLES (uniform ScalarFields) must be > 0");
static __device__ constexpr int
IDX(const int i)
{