Lines Matching defs:unit

1024          /* When a bindless sampler/image is bound to a texture/image unit, we
1034 unsigned unit = storage->opaque[shader_type].index + j;
1037 assert(unit >= 0 && unit < prog->sh.NumBindlessSamplers);
1038 prog->sh.BindlessSamplers[unit].data =
1041 assert(unit >= 0 && unit < prog->sh.NumBindlessImages);
1042 prog->sh.BindlessImages[unit].data =
1207 * "Setting a sampler's value to i selects texture image unit number
1226 /* check that the sampler (tex unit index) is legal */
1229 "glUniform1i(invalid sampler/tex unit index for "
1235 * two different sampler types are set to the same texture unit.
1242 const int unit = ((GLint *) values)[i];
1244 /* check that the image unit is legal */
1245 if (unit < 0 || unit >= (int)ctx->Const.MaxImageUnits) {
1247 "glUniform1i(invalid image unit index for uniform %d)",
1543 unsigned unit = uni->opaque[i].index + offset + j;
1548 &sh->Program->sh.BindlessSamplers[unit];
1550 /* Mark this bindless sampler as bound to a texture unit.
1552 if (sampler->unit != value || !sampler->bound) {
1557 sampler->unit = value;
1563 if (sh->Program->SamplerUnits[unit] != value) {
1568 sh->Program->SamplerUnits[unit] = value;
1599 unsigned unit = uni->opaque[i].index + offset + j;
1604 &sh->Program->sh.BindlessImages[unit];
1606 /* Mark this bindless image as bound to an image unit.
1608 image->unit = value;
1612 sh->Program->sh.ImageUnits[unit] = value;
2113 /* Mark this bindless sampler as not bound to a texture unit because
2124 unsigned unit = uni->opaque[i].index + offset + j;
2126 &sh->Program->sh.BindlessSamplers[unit];
2136 /* Mark this bindless image as not bound to an image unit because it
2147 unsigned unit = uni->opaque[i].index + offset + j;
2149 &sh->Program->sh.BindlessImages[unit];
2170 "refer to the same texture image unit");
2188 * different types, but refer to the same texture image unit.
2210 GLuint unit = prog[idx]->SamplerUnits[s];
2217 if (unit == 0)
2220 if (TexturesUsed[unit] & ~(1 << tgt)) {
2224 "Texture unit %d is accessed with 2 different types",
2225 prog[idx]->Id, unit);
2229 TexturesUsed[unit] |= (1 << tgt);