MCPcopy Create free account
hub / github.com/android/ndk-samples / GetActiveSamplerInfo

Method GetActiveSamplerInfo

teapots/textured-teapot/src/main/cpp/Texture.cpp:102–108  ·  view source on GitHub ↗

Return used sampler names and units so application could configure shader's sampler uniform(s). Cubemap just used one sampler at unit 0 with "samplerObj" as its name. */

Source from the content-addressed store, hash-verified

100 Cubemap just used one sampler at unit 0 with "samplerObj" as its name.
101 */
102void Texture::GetActiveSamplerInfo(std::vector<std::string>& names,
103 std::vector<GLint>& units) {
104 names.clear();
105 names.push_back(std::string("samplerObj"));
106 units.clear();
107 units.push_back(0);
108}

Callers 1

InitMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected