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

Method GetActiveSamplerInfo

teapots/image-decoder/src/main/cpp/Texture.cpp:261–269  ·  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

259 Cubemap just used one sampler at unit 0 with "samplerObj" as its name.
260 */
261bool TextureCubemap::GetActiveSamplerInfo(std::vector<std::string>& names,
262 std::vector<GLint>& units) {
263 names.clear();
264 names.push_back(std::string("samplerObj"));
265 units.clear();
266 units.push_back(0);
267
268 return true;
269}
270
271/**
272 * Texture2D implementation

Callers 1

InitMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected