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

Function GetProgramConstant

engine/render/src/render/program_utils.cpp:113–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111 }
112
113 bool GetProgramConstant(const dmArray<RenderConstant>& constants, dmhash_t name_hash, HConstant& out_value)
114 {
115 const RenderConstant* rc = GetRenderConstant(constants, name_hash);
116 if (!rc)
117 {
118 return false;
119 }
120 out_value = rc->m_Constant;
121 return true;
122 }
123
124 bool SetProgramSampler(dmArray<Sampler>& samplers, dmHashTable64<dmGraphics::HUniformLocation>& name_hash_to_location, dmhash_t name_hash, uint32_t unit, dmGraphics::TextureWrap u_wrap, dmGraphics::TextureWrap v_wrap, dmGraphics::TextureFilter min_filter, dmGraphics::TextureFilter mag_filter, float max_anisotropy)
125 {

Callers 2

Calls 1

GetRenderConstantFunction · 0.70

Tested by

no test coverage detected