| 337 | } |
| 338 | |
| 339 | void ProgramState::setTexture(backend::TextureBackend* texture) |
| 340 | { |
| 341 | for (int slot = 0; slot < texture->getCount() && slot < AX_META_TEXTURES; ++slot) |
| 342 | { |
| 343 | auto location = getUniformLocation((backend::Uniform)(backend::Uniform::TEXTURE + slot)); |
| 344 | setTexture(location, slot, slot, texture); |
| 345 | } |
| 346 | } |
| 347 | |
| 348 | void ProgramState::setTexture(const backend::UniformLocation& uniformLocation, |
| 349 | int slot, |