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

Function FreeShaderResourceBindings

engine/graphics/src/graphics.cpp:1215–1226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1213 }
1214
1215 static void FreeShaderResourceBindings(dmArray<ShaderResourceBinding>& bindings)
1216 {
1217 for (int i = 0; i < bindings.Size(); ++i)
1218 {
1219 free(bindings[i].m_Name);
1220 if (bindings[i].m_InstanceName)
1221 free(bindings[i].m_InstanceName);
1222 }
1223
1224 bindings.SetSize(0);
1225 bindings.SetCapacity(0);
1226 }
1227
1228 void DestroyShaderMeta(ShaderMeta& meta)
1229 {

Callers 1

DestroyShaderMetaFunction · 0.85

Calls 4

freeFunction · 0.85
SizeMethod · 0.45
SetSizeMethod · 0.45
SetCapacityMethod · 0.45

Tested by

no test coverage detected