| 69 | } |
| 70 | |
| 71 | static inline const RenderConstant* GetRenderConstant(const dmArray<RenderConstant>& constants, dmhash_t name_hash) |
| 72 | { |
| 73 | uint32_t n = constants.Size(); |
| 74 | for (uint32_t i = 0; i < n; ++i) |
| 75 | { |
| 76 | if (GetConstantName(constants[i].m_Constant) == name_hash) |
| 77 | { |
| 78 | return &constants[i]; |
| 79 | } |
| 80 | } |
| 81 | return 0; |
| 82 | } |
| 83 | |
| 84 | void SetProgramRenderConstant(const dmArray<RenderConstant>& constants, dmhash_t name_hash, const dmVMath::Vector4* values, uint32_t count) |
| 85 | { |
no test coverage detected