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

Function RenderScriptConstantBuffer_gc

engine/render/src/render/render_script.cpp:103–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101 };
102
103 static int RenderScriptConstantBuffer_gc (lua_State *L)
104 {
105 NamedConstantBufferTable* cb = (NamedConstantBufferTable*) lua_touserdata(L, 1);
106 DeleteNamedConstantBuffer(cb->m_ConstantBuffer);
107 cb->m_ConstantArrayEntries.~dmHashTable64<dmRender::ConstantBufferTableEntry>();
108 cb->m_ConstantBuffer = 0;
109 return 0;
110 }
111
112 static int RenderScriptConstantBuffer_tostring (lua_State *L)
113 {

Callers

nothing calls this directly

Calls 2

lua_touserdataFunction · 0.85

Tested by

no test coverage detected