From 212f32e2fd9410fc4a5a52e46bd75f4bb75f36da Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 7 Mar 2020 22:54:57 +0100 Subject: [PATCH] Get rid of the static asserts --- gfx/common/d3d10_common.h | 3 --- gfx/common/d3d11_common.h | 3 --- gfx/common/d3d12_common.h | 3 --- 3 files changed, 9 deletions(-) diff --git a/gfx/common/d3d10_common.h b/gfx/common/d3d10_common.h index e2924bd5b6..818a019684 100644 --- a/gfx/common/d3d10_common.h +++ b/gfx/common/d3d10_common.h @@ -1117,9 +1117,6 @@ typedef struct ALIGN(16) float time; } d3d10_uniform_t; -static_assert( - (!(sizeof(d3d10_uniform_t) & 0xF)), "sizeof(d3d10_uniform_t) must be a multiple of 16"); - typedef struct d3d10_shader_t { D3D10VertexShader vs; diff --git a/gfx/common/d3d11_common.h b/gfx/common/d3d11_common.h index dc3394908f..0208b0c085 100644 --- a/gfx/common/d3d11_common.h +++ b/gfx/common/d3d11_common.h @@ -2484,9 +2484,6 @@ typedef struct ALIGN(16) float time; } d3d11_uniform_t; -static_assert( - (!(sizeof(d3d11_uniform_t) & 0xF)), "sizeof(d3d11_uniform_t) must be a multiple of 16"); - typedef struct d3d11_shader_t { D3D11VertexShader vs; diff --git a/gfx/common/d3d12_common.h b/gfx/common/d3d12_common.h index 01ccc2020b..c97ba73f35 100644 --- a/gfx/common/d3d12_common.h +++ b/gfx/common/d3d12_common.h @@ -1340,9 +1340,6 @@ typedef struct ALIGN(16) float time; } d3d12_uniform_t; -static_assert( - (!(sizeof(d3d12_uniform_t) & 0xF)), "sizeof(d3d12_uniform_t) must be a multiple of 16"); - typedef struct { unsigned cur_mon_id;