Lines Matching refs:max_textures
1845 GLint max_textures = 0;
1849 gl.getIntegerv(GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS, &max_textures);
1855 if (n_textures > max_textures)
1857 count = max_textures;
1858 validated_index = max_textures - 1;
1882 if (n_textures <= max_textures)
1884 t_first = max_textures - n_textures + 1;
1888 t_count = max_textures + 1;
2081 GLint max_textures = 0;
2085 gl.getIntegerv(GL_MAX_IMAGE_UNITS, &max_textures);
2091 if (n_textures > max_textures)
2093 count = max_textures;
2094 validated_index = max_textures - 1;
2118 if (n_textures <= max_textures)
2120 t_first = max_textures - n_textures + 1;
2124 t_count = max_textures + 1;
2735 GLint max_textures = 0;
2738 gl.getIntegerv(GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS, &max_textures);
2747 texture.resize(max_textures);
2748 texture_ids.resize(max_textures);
2749 t_texture_ids.resize(max_textures);
2772 for (GLint i = s_n_texture_tragets; i < max_textures; ++i)
2780 for (GLint i = 0; i < max_textures; ++i)
2790 gl.bindTextures(0, max_textures, &texture_ids[0]);
2793 for (GLint i = 0; i < max_textures; ++i)
2804 GLint half_index = max_textures / 2;
2806 for (GLint i = 0; i < max_textures; ++i)
2819 for (GLint i = half_index; i < max_textures; ++i)
2830 gl.bindTextures(half_index, max_textures - half_index, 0);
2833 for (GLint i = 0; i < max_textures; ++i)
2860 gl.bindTextures(0, max_textures, &texture_ids[0]);
2864 for (GLint i = 1; i < max_textures; ++i)
2870 gl.bindTextures(0, max_textures, 0);
3056 GLint max_textures = 0;
3059 gl.getIntegerv(GL_MAX_IMAGE_UNITS, &max_textures);
3068 texture.resize(max_textures);
3069 texture_ids.resize(max_textures);
3070 t_texture_ids.resize(max_textures);
3080 if (i >= max_textures)
3098 for (GLint i = (GLint)s_n_texture_tragets; i < max_textures; ++i)
3106 for (GLint i = 0; i < max_textures; ++i)
3115 gl.bindImageTextures(0, max_textures, &texture_ids[0]);
3118 for (GLint i = 0; i < max_textures; ++i)
3129 GLint half_index = max_textures / 2;
3131 for (GLint i = 0; i < max_textures; ++i)
3144 for (GLint i = half_index; i < max_textures; ++i)
3155 gl.bindImageTextures(half_index, max_textures - half_index, 0);
3158 for (GLint i = 0; i < max_textures; ++i)
3185 gl.bindImageTextures(0, max_textures, &texture_ids[0]);
3189 for (GLint i = 1; i < max_textures; ++i)
3195 gl.bindImageTextures(0, max_textures, 0);
3724 GLint max_textures = 0;
3729 gl.getIntegerv(GL_MAX_COMPUTE_TEXTURE_IMAGE_UNITS, &max_textures);
3742 texture.resize(max_textures);
3743 texture_ids.resize(max_textures);
3746 for (GLint i = 0; i < max_textures; ++i)
3800 gl.bindTextures(0 /* first */, max_textures /* count */, &texture_ids[0]);
3814 for (GLint i = 0; i < max_textures; ++i)
3872 for (GLint i = 0; i < max_textures; ++i)
3982 GLint max_textures = 0;
3987 gl.getIntegerv(GL_MAX_COMPUTE_IMAGE_UNIFORMS, &max_textures);
4000 texture.resize(max_textures);
4001 texture_ids.resize(max_textures);
4004 for (GLint i = 0; i < max_textures; ++i)
4056 gl.bindImageTextures(0 /* first */, max_textures /* count */, &texture_ids[0]);
4070 for (GLint i = 0; i < max_textures; ++i)
4128 for (GLint i = 0; i < max_textures; ++i)
4214 GLint max_textures = 0;
4217 gl.getIntegerv(GL_MAX_COMPUTE_TEXTURE_IMAGE_UNITS, &max_textures);
4226 sampler_ids.resize(max_textures);
4227 texture.resize(max_textures);
4228 texture_ids.resize(max_textures);
4257 for (GLint i = 0; i < max_textures; ++i)
4271 gl.bindTextures(0 /* first */, max_textures /* count */, &texture_ids[0]);
4285 for (GLint i = 0; i < max_textures; ++i)
4324 for (GLint i = 0; i < max_textures; ++i)
4331 gl.genSamplers(max_textures, &sampler_ids[0]);
4336 gl.bindSamplers(0 /* first */, max_textures /* count */, &sampler_ids[0]);
4339 for (GLint i = 0; i < max_textures; ++i)
4355 gl.deleteSamplers(max_textures, &sampler_ids[0]);
4361 gl.deleteSamplers(max_textures, &sampler_ids[0]);
4367 if (0 != memcmp(result, &max_textures, sizeof(max_textures)))