| 143 | } |
| 144 | |
| 145 | uint32_t GetProgramSamplerUnit(const dmArray<Sampler>& samplers, dmhash_t name_hash) |
| 146 | { |
| 147 | uint32_t num_samplers = samplers.Size(); |
| 148 | for (uint32_t i = 0; i < num_samplers; ++i) |
| 149 | { |
| 150 | if (samplers[i].m_NameHash == name_hash) |
| 151 | { |
| 152 | return i; |
| 153 | } |
| 154 | } |
| 155 | return INVALID_SAMPLER_UNIT; |
| 156 | } |
| 157 | |
| 158 | HSampler GetProgramSampler(const dmArray<Sampler>& samplers, uint32_t unit) |
| 159 | { |
no test coverage detected