mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
Fixed alignment macro.
This commit is contained in:
parent
bfa1f9f3af
commit
7fa124eeab
2 changed files with 4 additions and 7 deletions
|
@ -1641,7 +1641,7 @@ void shadowVolumeCreate(ShadowVolume& _shadowVolume
|
||||||
const float4_t onei = float4_isplat(1);
|
const float4_t onei = float4_isplat(1);
|
||||||
const float4_t tmp4 = float4_isub(tmp3, onei);
|
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);
|
float4_st(&res, tmp4);
|
||||||
|
|
||||||
for (uint16_t jj = 0; jj < 2; ++jj)
|
for (uint16_t jj = 0; jj < 2; ++jj)
|
||||||
|
|
|
@ -717,7 +717,7 @@ namespace bgfx
|
||||||
};
|
};
|
||||||
#undef SORT_KEY_RENDER_DRAW
|
#undef SORT_KEY_RENDER_DRAW
|
||||||
|
|
||||||
BX_ALIGN_STRUCT_16(struct) Matrix4
|
BX_ALIGN_DECL_16(struct) Matrix4
|
||||||
{
|
{
|
||||||
union
|
union
|
||||||
{
|
{
|
||||||
|
@ -1137,10 +1137,8 @@ namespace bgfx
|
||||||
VertexDeclHandle m_decl;
|
VertexDeclHandle m_decl;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct Frame
|
BX_ALIGN_DECL_CACHE_LINE(struct) Frame
|
||||||
{
|
{
|
||||||
BX_CACHE_LINE_ALIGN_MARKER();
|
|
||||||
|
|
||||||
Frame()
|
Frame()
|
||||||
: m_waitSubmit(0)
|
: m_waitSubmit(0)
|
||||||
, m_waitRender(0)
|
, m_waitRender(0)
|
||||||
|
@ -3054,9 +3052,8 @@ namespace bgfx
|
||||||
bool m_rendererInitialized;
|
bool m_rendererInitialized;
|
||||||
bool m_exit;
|
bool m_exit;
|
||||||
|
|
||||||
BX_CACHE_LINE_ALIGN_MARKER();
|
|
||||||
typedef UpdateBatchT<256> TextureUpdateBatch;
|
typedef UpdateBatchT<256> TextureUpdateBatch;
|
||||||
TextureUpdateBatch m_textureUpdateBatch;
|
BX_ALIGN_DECL_CACHE_LINE(TextureUpdateBatch m_textureUpdateBatch);
|
||||||
};
|
};
|
||||||
|
|
||||||
#undef BGFX_API_FUNC
|
#undef BGFX_API_FUNC
|
||||||
|
|
Loading…
Reference in a new issue