mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-06-08 03:13:52 +00:00
Cleanup. (#3679)
This commit is contained in:
committed by
GitHub
parent
6294e59293
commit
c9e98db704
@@ -2767,7 +2767,7 @@ static_assert(BX_COUNTOF(s_accessNames) == Access::Count, "Invalid s_accessNames
|
||||
for (uint32_t ii = 0; ii < BX_COUNTOF(s_instanceDataName); ++ii)
|
||||
{
|
||||
const uint32_t loc = program.m_instanceData[ii];
|
||||
if (UINT16_MAX != loc)
|
||||
if (UINT32_MAX != loc)
|
||||
{
|
||||
vertexDesc->attributes()->object(loc)->setFormat(MTL::VertexFormatFloat4);
|
||||
vertexDesc->attributes()->object(loc)->setBufferIndex(stream+1);
|
||||
@@ -3207,7 +3207,7 @@ static_assert(BX_COUNTOF(s_accessNames) == Access::Count, "Invalid s_accessNames
|
||||
}
|
||||
|
||||
m_used[used] = Attrib::Count;
|
||||
m_instanceData[instUsed] = UINT16_MAX;
|
||||
m_instanceData[instUsed] = UINT32_MAX;
|
||||
}
|
||||
|
||||
void ProgramMtl::destroy()
|
||||
|
||||
@@ -5676,7 +5676,7 @@ m_resolution.formatColor = TextureFormat::BGRA8;
|
||||
bool hasPredefined = false;
|
||||
SortKey key;
|
||||
uint16_t view = UINT16_MAX;
|
||||
FrameBufferHandle fbh = { BGFX_INVALID_HANDLE };
|
||||
FrameBufferHandle fbh = BGFX_INVALID_HANDLE;
|
||||
|
||||
UniformCacheState ucs(_render);
|
||||
BlitState bs(_render);
|
||||
|
||||
Reference in New Issue
Block a user