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

Function SetConstantValuesRef

engine/render/src/render/constant.cpp:73–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73Result SetConstantValuesRef(HConstant constant, dmVMath::Vector4* values, uint32_t num_values)
74{
75 if (constant->m_AllocatedValues)
76 dmMemory::AlignedFree(constant->m_Values);
77
78 constant->m_AllocatedValues = 0;
79 constant->m_NumValues = num_values;
80 constant->m_Values = values;
81
82 return dmRender::RESULT_OK;
83}
84
85dmhash_t GetConstantName(HConstant constant)
86{

Callers 1

SetProgramConstantValuesFunction · 0.85

Calls 1

AlignedFreeFunction · 0.85

Tested by

no test coverage detected