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

Function SetNamedConstants

engine/render/src/render/constant.cpp:317–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315}
316
317void SetNamedConstants(HNamedConstantBuffer buffer, HConstant* constants, uint32_t num_constants)
318{
319 for (uint32_t i = 0; i < num_constants; ++i)
320 {
321 Constant* c = constants[i];
322 SetNamedConstant(buffer, c->m_NameHash, c->m_Values, c->m_NumValues, c->m_Type);
323 }
324}
325
326bool GetNamedConstant(HNamedConstantBuffer buffer, dmhash_t name_hash, dmVMath::Vector4** values, uint32_t* num_values)
327{

Callers 3

TESTFunction · 0.85
CreateFontRenderBatchFunction · 0.85

Calls 1

SetNamedConstantFunction · 0.85

Tested by 1

TESTFunction · 0.68