Lines Matching refs:samplerIndex
291 GLint Program::getSamplerMapping(sw::SamplerType type, unsigned int samplerIndex) in getSamplerMapping() argument
298 ASSERT(samplerIndex < sizeof(samplersPS) / sizeof(samplersPS[0])); in getSamplerMapping()
300 if(samplersPS[samplerIndex].active) in getSamplerMapping()
302 logicalTextureUnit = samplersPS[samplerIndex].logicalTextureUnit; in getSamplerMapping()
306 ASSERT(samplerIndex < sizeof(samplersVS) / sizeof(samplersVS[0])); in getSamplerMapping()
308 if(samplersVS[samplerIndex].active) in getSamplerMapping()
310 logicalTextureUnit = samplersVS[samplerIndex].logicalTextureUnit; in getSamplerMapping()
325 TextureType Program::getSamplerTextureType(sw::SamplerType type, unsigned int samplerIndex) in getSamplerTextureType() argument
330 ASSERT(samplerIndex < sizeof(samplersPS)/sizeof(samplersPS[0])); in getSamplerTextureType()
331 ASSERT(samplersPS[samplerIndex].active); in getSamplerTextureType()
332 return samplersPS[samplerIndex].textureType; in getSamplerTextureType()
334 ASSERT(samplerIndex < sizeof(samplersVS)/sizeof(samplersVS[0])); in getSamplerTextureType()
335 ASSERT(samplersVS[samplerIndex].active); in getSamplerTextureType()
336 return samplersVS[samplerIndex].textureType; in getSamplerTextureType()
2396 unsigned int samplerIndex = targetUniform->psRegisterIndex + i; in applyUniform1iv() local
2398 if(samplerIndex < MAX_TEXTURE_IMAGE_UNITS) in applyUniform1iv()
2400 ASSERT(samplersPS[samplerIndex].active); in applyUniform1iv()
2401 samplersPS[samplerIndex].logicalTextureUnit = v[i]; in applyUniform1iv()
2410 unsigned int samplerIndex = targetUniform->vsRegisterIndex + i; in applyUniform1iv() local
2412 if(samplerIndex < MAX_VERTEX_TEXTURE_IMAGE_UNITS) in applyUniform1iv()
2414 ASSERT(samplersVS[samplerIndex].active); in applyUniform1iv()
2415 samplersVS[samplerIndex].logicalTextureUnit = v[i]; in applyUniform1iv()
2498 unsigned int samplerIndex = targetUniform->psRegisterIndex + i; in applyUniform1uiv() local
2500 if(samplerIndex < MAX_TEXTURE_IMAGE_UNITS) in applyUniform1uiv()
2502 ASSERT(samplersPS[samplerIndex].active); in applyUniform1uiv()
2503 samplersPS[samplerIndex].logicalTextureUnit = v[i]; in applyUniform1uiv()
2512 unsigned int samplerIndex = targetUniform->vsRegisterIndex + i; in applyUniform1uiv() local
2514 if(samplerIndex < MAX_VERTEX_TEXTURE_IMAGE_UNITS) in applyUniform1uiv()
2516 ASSERT(samplersVS[samplerIndex].active); in applyUniform1uiv()
2517 samplersVS[samplerIndex].logicalTextureUnit = v[i]; in applyUniform1uiv()