MCPcopy Create free account
hub / github.com/Tencent/tgfx / checkSamplerCounts

Method checkSamplerCounts

src/gpu/glsl/GLSLProgramBuilder.cpp:232–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230}
231
232bool GLSLProgramBuilder::checkSamplerCounts() {
233 auto shaderCaps = context->caps()->shaderCaps();
234 if (numFragmentSamplers > shaderCaps->maxFragmentSamplers) {
235 LOGE("Program would use too many fragment samplers.");
236 return false;
237 }
238 return true;
239}
240} // namespace tgfx

Callers

nothing calls this directly

Calls 2

shaderCapsMethod · 0.80
capsMethod · 0.45

Tested by

no test coverage detected