| 230 | } |
| 231 | |
| 232 | bool 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 |
nothing calls this directly
no test coverage detected