Lines Matching defs:limit
80 int limit = 0;
81 ctx.glGetIntegerv(resource, &limit);
83 return limit;
222 const int limit = getResourceLimit(ctx, GL_MAX_COMPUTE_TEXTURE_IMAGE_UNITS) + 1;
227 << "uniform highp sampler2D u_sampler[" << limit + 1 << "];\n"
230 << " vec4 values[ " << limit + 1 << " ];\n"
233 for (int i = 0; i < limit + 1; ++i)
258 const int limit = getResourceLimit(ctx, GL_MAX_COMPUTE_IMAGE_UNIFORMS);
263 << "uniform readonly highp image2D u_image[" << limit + 1 << "];\n"
266 << " float values[" << limit + 1 << "];\n"
269 for (int i = 0; i < limit + 1; ++i)
282 const int limit = getResourceLimit(ctx, GL_MAX_COMPUTE_SHARED_MEMORY_SIZE);
283 const long numberOfElements = limit / sizeof(GLuint);
305 const int limit = getResourceLimit(ctx, GL_MAX_COMPUTE_UNIFORM_COMPONENTS);
309 shaderDecl << "uniform highp uint u_value[" << limit + 1 << "];\n"
315 shaderBody << " sb_out.values[0] = u_value[" << limit << "];\n";
328 const int limit = getResourceLimit(ctx, GL_MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS);
332 for (int i = 0; i < limit + 1; ++i)