| 55 | } |
| 56 | |
| 57 | void GL46Texture1Array::LoadTextureLevel(uint32_t item, uint32_t level, void const* data) |
| 58 | { |
| 59 | auto texture = GetTexture(); |
| 60 | if (texture && level < texture->GetNumLevels()) |
| 61 | { |
| 62 | auto const length = texture->GetDimensionFor(level, 0); |
| 63 | |
| 64 | // For Texture1Array, use the 2D calls where the slice (or item) is |
| 65 | // the second dimension. Only updating one slice for the specified |
| 66 | // level. |
| 67 | glTexSubImage2D(GL_TEXTURE_1D_ARRAY, level, 0, item, length, 1, |
| 68 | mExternalFormat, mExternalType, data); |
| 69 | } |
| 70 | } |
| 71 | |
| 72 |
nothing calls this directly
no test coverage detected