MCPcopy Create free account
hub / github.com/defold/defold / Next

Method Next

engine/graphics/src/graphics_private.h:256–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254 {}
255
256 const ProgramResourceBinding* Next()
257 {
258 for (; m_CurrentSet < m_Program->m_MaxSet; ++m_CurrentSet)
259 {
260 for (; m_CurrentBinding < m_Program->m_MaxBinding; ++m_CurrentBinding)
261 {
262 if (m_Program->m_ResourceBindings[m_CurrentSet][m_CurrentBinding].m_Res != 0x0)
263 {
264 const ProgramResourceBinding* res = &m_Program->m_ResourceBindings[m_CurrentSet][m_CurrentBinding];
265 m_CurrentBinding++;
266 return res;
267 }
268 }
269 m_CurrentBinding = 0; // Reset binding index when moving to the next set
270 }
271 return 0x0;
272 }
273
274 void Reset()
275 {

Callers 11

DeleteDynamicTexturesFunction · 0.45
CompSpriteDeleteWorldFunction · 0.45
ClearFixtureShapesFunction · 0.45
IterateUniformsFunction · 0.45
BuildUniformsFunction · 0.45
UpdateDescriptorSetsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected