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

Function SetProgramConstantType

engine/render/src/render/program_utils.cpp:104–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102 }
103
104 void SetProgramConstantType(const dmArray<RenderConstant>& constants, dmhash_t name_hash, dmRenderDDF::MaterialDesc::ConstantType type)
105 {
106 const RenderConstant* rc = GetRenderConstant(constants, name_hash);
107 if (rc)
108 {
109 SetConstantType(rc->m_Constant, type);
110 }
111 }
112
113 bool GetProgramConstant(const dmArray<RenderConstant>& constants, dmhash_t name_hash, HConstant& out_value)
114 {

Callers 2

Calls 2

SetConstantTypeFunction · 0.85
GetRenderConstantFunction · 0.70

Tested by

no test coverage detected