| 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 | { |
no test coverage detected