MCPcopy Create free account
hub / github.com/davideberly/GeometricTools / LoadTextureLevel

Method LoadTextureLevel

GTE/Graphics/GL46/GL46Texture1Array.cpp:57–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57void 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

Callers

nothing calls this directly

Calls 3

glTexSubImage2DFunction · 0.85
GetNumLevelsMethod · 0.80
GetDimensionForMethod · 0.80

Tested by

no test coverage detected