Searched refs:samplerIndex (Results 1 – 8 of 8) sorted by relevance
/external/swiftshader/src/OpenGL/libGL/ |
D | Program.cpp | 215 GLint Program::getSamplerMapping(sw::SamplerType type, unsigned int samplerIndex) in getSamplerMapping() argument 222 ASSERT(samplerIndex < sizeof(samplersPS) / sizeof(samplersPS[0])); in getSamplerMapping() 224 if(samplersPS[samplerIndex].active) in getSamplerMapping() 226 logicalTextureUnit = samplersPS[samplerIndex].logicalTextureUnit; in getSamplerMapping() 230 ASSERT(samplerIndex < sizeof(samplersVS) / sizeof(samplersVS[0])); in getSamplerMapping() 232 if(samplersVS[samplerIndex].active) in getSamplerMapping() 234 logicalTextureUnit = samplersVS[samplerIndex].logicalTextureUnit; in getSamplerMapping() 249 TextureType Program::getSamplerTextureType(sw::SamplerType type, unsigned int samplerIndex) in getSamplerTextureType() argument 254 ASSERT(samplerIndex < sizeof(samplersPS)/sizeof(samplersPS[0])); in getSamplerTextureType() 255 ASSERT(samplersPS[samplerIndex].active); in getSamplerTextureType() [all …]
|
D | Context.cpp | 2024 for(int samplerIndex = 0; samplerIndex < samplerCount; samplerIndex++) in applyTextures() local 2026 …programObject ? programObject->getSamplerMapping(samplerType, samplerIndex) : samplerIndex; // O… in applyTextures() 2030 …ype = programObject ? programObject->getSamplerTextureType(samplerType, samplerIndex) : TEXTURE_2D; in applyTextures() 2034 if(envEnable[samplerIndex] && texture->isSamplerComplete()) in applyTextures() 2042 device->setAddressingModeU(samplerType, samplerIndex, es2sw::ConvertTextureWrap(wrapS)); in applyTextures() 2043 device->setAddressingModeV(samplerType, samplerIndex, es2sw::ConvertTextureWrap(wrapT)); in applyTextures() 2045 …device->setTextureFilter(samplerType, samplerIndex, es2sw::ConvertTextureFilter(minFilter, magFilt… in applyTextures() 2046 device->setMipmapFilter(samplerType, samplerIndex, es2sw::ConvertMipMapFilter(minFilter)); in applyTextures() 2047 device->setMaxAnisotropy(samplerType, samplerIndex, maxAnisotropy); in applyTextures() 2049 applyTexture(samplerType, samplerIndex, texture); in applyTextures() [all …]
|
D | Program.h | 88 GLint getSamplerMapping(sw::SamplerType type, unsigned int samplerIndex); 89 TextureType getSamplerTextureType(sw::SamplerType type, unsigned int samplerIndex);
|
/external/swiftshader/src/OpenGL/libGLESv2/ |
D | Program.cpp | 294 GLint Program::getSamplerMapping(sw::SamplerType type, unsigned int samplerIndex) in getSamplerMapping() argument 301 ASSERT(samplerIndex < sizeof(samplersPS) / sizeof(samplersPS[0])); in getSamplerMapping() 303 if(samplersPS[samplerIndex].active) in getSamplerMapping() 305 logicalTextureUnit = samplersPS[samplerIndex].logicalTextureUnit; in getSamplerMapping() 309 ASSERT(samplerIndex < sizeof(samplersVS) / sizeof(samplersVS[0])); in getSamplerMapping() 311 if(samplersVS[samplerIndex].active) in getSamplerMapping() 313 logicalTextureUnit = samplersVS[samplerIndex].logicalTextureUnit; in getSamplerMapping() 328 TextureType Program::getSamplerTextureType(sw::SamplerType type, unsigned int samplerIndex) in getSamplerTextureType() argument 333 ASSERT(samplerIndex < sizeof(samplersPS)/sizeof(samplersPS[0])); in getSamplerTextureType() 334 ASSERT(samplersPS[samplerIndex].active); in getSamplerTextureType() [all …]
|
D | Context.cpp | 3009 for(int samplerIndex = 0; samplerIndex < samplerCount; samplerIndex++) in applyTextures() local 3011 …int textureUnit = programObject->getSamplerMapping(samplerType, samplerIndex); // OpenGL texture… in applyTextures() 3015 TextureType textureType = programObject->getSamplerTextureType(samplerType, samplerIndex); in applyTextures() 3054 device->setAddressingModeU(samplerType, samplerIndex, es2sw::ConvertTextureWrap(wrapS)); in applyTextures() 3055 device->setAddressingModeV(samplerType, samplerIndex, es2sw::ConvertTextureWrap(wrapT)); in applyTextures() 3056 device->setAddressingModeW(samplerType, samplerIndex, es2sw::ConvertTextureWrap(wrapR)); in applyTextures() 3057 device->setSwizzleR(samplerType, samplerIndex, es2sw::ConvertSwizzleType(swizzleR)); in applyTextures() 3058 device->setSwizzleG(samplerType, samplerIndex, es2sw::ConvertSwizzleType(swizzleG)); in applyTextures() 3059 device->setSwizzleB(samplerType, samplerIndex, es2sw::ConvertSwizzleType(swizzleB)); in applyTextures() 3060 device->setSwizzleA(samplerType, samplerIndex, es2sw::ConvertSwizzleType(swizzleA)); in applyTextures() [all …]
|
D | Program.h | 138 GLint getSamplerMapping(sw::SamplerType type, unsigned int samplerIndex); 139 TextureType getSamplerTextureType(sw::SamplerType type, unsigned int samplerIndex);
|
/external/swiftshader/src/Shader/ |
D | PixelProgram.hpp | 86 …void sampleTexture(Vector4f &c, int samplerIndex, Vector4f &uvwq, Vector4f &dsx, Vector4f &dsy, Ve…
|
D | PixelProgram.cpp | 711 …void PixelProgram::sampleTexture(Vector4f &c, int samplerIndex, Vector4f &uvwq, Vector4f &dsx, Vec… in sampleTexture() argument 717 Pointer<Byte> texture = data + OFFSET(DrawData, mipmap) + samplerIndex * sizeof(Texture); in sampleTexture() 718 …sampler[samplerIndex]->sampleTexture(texture, c, uvwq.x, uvwq.y, uvwq.z, uvwq.w, dsx, dsy, offset,… in sampleTexture()
|