diff --git a/examples/14-shadowvolumes/shadowvolumes.cpp b/examples/14-shadowvolumes/shadowvolumes.cpp index ab11e001..c2314c90 100644 --- a/examples/14-shadowvolumes/shadowvolumes.cpp +++ b/examples/14-shadowvolumes/shadowvolumes.cpp @@ -1641,7 +1641,7 @@ void shadowVolumeCreate(ShadowVolume& _shadowVolume const float4_t onei = float4_isplat(1); const float4_t tmp4 = float4_isub(tmp3, onei); - BX_ALIGN_STRUCT_16(int32_t res[4]); + BX_ALIGN_DECL_16(int32_t res[4]); float4_st(&res, tmp4); for (uint16_t jj = 0; jj < 2; ++jj) diff --git a/src/bgfx_p.h b/src/bgfx_p.h index 1c16962b..5bef41c0 100644 --- a/src/bgfx_p.h +++ b/src/bgfx_p.h @@ -717,7 +717,7 @@ namespace bgfx }; #undef SORT_KEY_RENDER_DRAW - BX_ALIGN_STRUCT_16(struct) Matrix4 + BX_ALIGN_DECL_16(struct) Matrix4 { union { @@ -1137,10 +1137,8 @@ namespace bgfx VertexDeclHandle m_decl; }; - struct Frame + BX_ALIGN_DECL_CACHE_LINE(struct) Frame { - BX_CACHE_LINE_ALIGN_MARKER(); - Frame() : m_waitSubmit(0) , m_waitRender(0) @@ -3054,9 +3052,8 @@ namespace bgfx bool m_rendererInitialized; bool m_exit; - BX_CACHE_LINE_ALIGN_MARKER(); typedef UpdateBatchT<256> TextureUpdateBatch; - TextureUpdateBatch m_textureUpdateBatch; + BX_ALIGN_DECL_CACHE_LINE(TextureUpdateBatch m_textureUpdateBatch); }; #undef BGFX_API_FUNC