| 233 | } |
| 234 | |
| 235 | static Constant* FindConstant(dmArray<RenderConstant>& constants, dmhash_t name_hash) |
| 236 | { |
| 237 | uint32_t n = constants.Size(); |
| 238 | for (uint32_t i = 0; i < n; ++i) |
| 239 | { |
| 240 | RenderConstant* constant = &constants[i]; |
| 241 | if (constant->m_Constant->m_NameHash == name_hash) |
| 242 | return constant->m_Constant; |
| 243 | } |
| 244 | return 0; |
| 245 | } |
| 246 | |
| 247 | void SetProgramConstantValues(dmGraphics::HContext graphics_context, dmGraphics::HProgram program, uint32_t total_constants_count, dmHashTable64<dmGraphics::HUniformLocation>& name_hash_to_location, dmArray<RenderConstant>& constants, dmArray<Sampler>& samplers) |
| 248 | { |
no test coverage detected