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

Function ReleaseConstantBufferLuaRefs

engine/render/src/render/render_script.cpp:3357–3368  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3355 }
3356
3357 static void ReleaseConstantBufferLuaRefs(lua_State* L, HRenderScriptInstance instance)
3358 {
3359 uint32_t num_refs = instance->m_ConstantBufferLuaRefs.Size();
3360 if (num_refs > 0)
3361 {
3362 for (uint32_t i = 0; i < num_refs; ++i)
3363 {
3364 dmScript::Unref(L, LUA_REGISTRYINDEX, instance->m_ConstantBufferLuaRefs[i]);
3365 }
3366 instance->m_ConstantBufferLuaRefs.SetSize(0);
3367 }
3368 }
3369
3370 void DeleteRenderScriptInstance(HRenderScriptInstance render_script_instance)
3371 {

Callers 2

Calls 3

UnrefFunction · 0.85
SizeMethod · 0.45
SetSizeMethod · 0.45

Tested by

no test coverage detected