/external/mesa3d/src/mesa/drivers/dri/radeon/server/ |
radeon_dri.h | 82 int textureSize; /**< \brief size of texture date */
|
/external/swiftshader/third_party/PowerVR_SDK/Tools/ |
PVRTMisc.h | 61 @param[in] textureSize Texture size in pixels 65 void PVRTCreateSkybox(float scale, bool adjustUV, int textureSize, VERTTYPE** Vertices, VERTTYPE** UVs);
|
PVRTMisc.cpp | 273 @Input textureSize Texture size in pixels 278 void PVRTCreateSkybox(float scale, bool adjustUV, int textureSize, VERTTYPE** Vertices, VERTTYPE** UVs) 288 VERTTYPE oneover = f2vt(1.0f / textureSize);
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
NinePatchTexture.java | 265 int textureSize = Utils.nextPowerOf2(source); 266 float textureBound = (float) source / textureSize; 285 u[i + 1] = Math.min((div[i] + 0.5f) / textureSize, textureBound); 296 u[i + 2] = Math.min((lastU - 0.5f)/ textureSize, textureBound);
|
/external/deqp/modules/gles3/functional/ |
es3fTextureUnitTests.cpp | 300 static float calculateLodMax(const tcu::Vector<tcu::Vec2, 3>& derivateParts, const tcu::IVec3& textureSize, const Vec2& screenDerivate) 302 float dudx = derivateParts[0].x() * (float)textureSize.x() * screenDerivate.x(); 303 float dudy = derivateParts[0].y() * (float)textureSize.x() * screenDerivate.y(); 304 float dvdx = derivateParts[1].x() * (float)textureSize.y() * screenDerivate.x(); 305 float dvdy = derivateParts[1].y() * (float)textureSize.y() * screenDerivate.y(); 306 float dwdx = derivateParts[2].x() * (float)textureSize.z() * screenDerivate.x(); 307 float dwdy = derivateParts[2].y() * (float)textureSize.z() * screenDerivate.y(); 316 static float calculateLodMin(const tcu::Vector<tcu::Vec2, 3>& derivateParts, const tcu::IVec3& textureSize, const Vec2& screenDerivate) 318 float dudx = derivateParts[0].x() * (float)textureSize.x() * screenDerivate.x(); 319 float dudy = derivateParts[0].y() * (float)textureSize.x() * screenDerivate.y() [all...] |
es3fVertexTextureTests.cpp | 126 static inline Vec2 safe2DTexCoords (const Vec2& raw, const IVec2& textureSize) 128 return safeCoords(raw, textureSize, Vec2(0.5f)); 131 static inline Vec3 safe2DArrayTexCoords (const Vec3& raw, const IVec3& textureSize) 133 return safeCoords(raw, textureSize, Vec3(0.5f, 0.5f, 0.0f)); 136 static inline Vec3 safe3DTexCoords (const Vec3& raw, const IVec3& textureSize) 138 return safeCoords(raw, textureSize, Vec3(0.5f)); 239 PosTexCoordQuadGrid (int gridSize, const IVec2& renderSize, const TexSizeIVec& textureSize, const TexCoordParams& texCoordParams, bool useSafeTexCoords); 251 void initializeTexCoords (const TexSizeIVec& textureSize, const TexCoordParams& texCoordParams, bool useSafeTexCoords); 278 PosTexCoordQuadGrid<TexType>::PosTexCoordQuadGrid (int gridSize, const IVec2& renderSize, const TexSizeIVec& textureSize, const TexCoordParams& texCoordParams, bool useSafeTexCoords) 313 initializeTexCoords(textureSize, texCoordParams, useSafeTexCoords) [all...] |
es3fShaderTextureFunctionTests.cpp | [all...] |
/external/deqp/external/vulkancts/modules/vulkan/pipeline/ |
vktPipelineImageUtil.cpp | 674 deUint32 textureSize = 0; 684 textureSize = getNextMultiple(offsetMultiples, textureSize); 685 textureSize += level.getWidth() * level.getHeight() * level.getDepth() * level.getFormat().getPixelSize(); 689 return textureSize; 698 deUint32 textureSize = 0; 707 textureSize = getNextMultiple(offsetMultiples, textureSize); 708 textureSize += getCompressedLevel(levelNdx, layerNdx).getDataSize(); 712 return textureSize; [all...] |
/external/deqp/modules/gles2/functional/ |
es2fTextureUnitTests.cpp | 220 static float calculateLodMax(const Vec4& derivateParts, const tcu::IVec2& textureSize, const Vec2& screenDerivate) 222 float dudx = derivateParts.x() * (float)textureSize.x() * screenDerivate.x(); 223 float dudy = derivateParts.y() * (float)textureSize.x() * screenDerivate.y(); 224 float dvdx = derivateParts.z() * (float)textureSize.y() * screenDerivate.x(); 225 float dvdy = derivateParts.w() * (float)textureSize.y() * screenDerivate.y(); 231 static float calculateLodMin(const Vec4& derivateParts, const tcu::IVec2& textureSize, const Vec2& screenDerivate) 233 float dudx = derivateParts.x() * (float)textureSize.x() * screenDerivate.x(); 234 float dudy = derivateParts.y() * (float)textureSize.x() * screenDerivate.y(); 235 float dvdx = derivateParts.z() * (float)textureSize.y() * screenDerivate.x(); 236 float dvdy = derivateParts.w() * (float)textureSize.y() * screenDerivate.y() [all...] |
es2fVertexTextureTests.cpp | 109 static inline Vec2 safe2DTexCoords (const Vec2& raw, const IVec2& textureSize) 111 return safeCoords(raw, textureSize, Vec2(0.5f)); 190 PosTexCoordQuadGrid (int gridSize, const IVec2& renderSize, const TexSizeIVec& textureSize, const TexCoordParams& texCoordParams, bool useSafeTexCoords); 202 void initializeTexCoords (const TexSizeIVec& textureSize, const TexCoordParams& texCoordParams, bool useSafeTexCoords); 229 PosTexCoordQuadGrid<TexType>::PosTexCoordQuadGrid (int gridSize, const IVec2& renderSize, const TexSizeIVec& textureSize, const TexCoordParams& texCoordParams, bool useSafeTexCoords) 264 initializeTexCoords(textureSize, texCoordParams, useSafeTexCoords); 272 void PosTexCoordQuadGrid<TEXTURETYPE_2D>::initializeTexCoords (const IVec2& textureSize, const TexCoordParams& texCoordParams, bool useSafeTexCoords) 284 m_texCoords.push_back(useSafeTexCoords ? safe2DTexCoords(rawCoord, textureSize) : rawCoord); 289 void PosTexCoordQuadGrid<TEXTURETYPE_CUBE>::initializeTexCoords (const IVec2& textureSize, const TexCoordParams& texCoordParams, bool useSafeTexCoords) 306 const Vec2 safeFaceCoord = useSafeTexCoords ? safe2DTexCoords(rawFaceCoord, textureSize) : rawFaceCoord [all...] |
/external/deqp/external/vulkancts/modules/vulkan/shaderrender/ |
vktShaderRenderTextureGatherTests.cpp | [all...] |
vktShaderRenderTextureFunctionTests.cpp | [all...] |
/external/deqp/modules/gles2/stress/ |
es2sSpecialFloatTests.cpp | 263 const int textureSize = 32; 264 std::vector<tcu::Vector<deUint8, 4> > buffer(textureSize*textureSize); 266 for (int x = 0; x < textureSize; ++x) 267 for (int y = 0; y < textureSize; ++y) 271 const deUint8 redComponent = (deUint8)de::clamp(de::abs((float)x / (float)textureSize - 0.5f) * 255.0f + de::abs((float)y / (float)textureSize - 0.5f) * 255.0f, 0.0f, 255.0f); 273 buffer[x * textureSize + y] = tcu::Vector<deUint8, 4>(redComponent, 255, 255, 255); 278 gl.texImage2D(GL_TEXTURE_2D, 0, GL_RGBA, textureSize, textureSize, 0, GL_RGBA, GL_UNSIGNED_BYTE, buffer[0].getPtr()) [all...] |
/external/deqp/modules/gles31/functional/ |
es31fShaderImageLoadStoreTests.cpp | 827 const IVec3& textureSize, 837 const int numSlicesOrFaces = textureType == TEXTURETYPE_CUBE ? 6 : textureSize.z(); 840 tcu::TextureLevel resultSlice (textureFormat, textureSize.x(), textureSize.y()); 884 const IVec3& textureSize, 900 " vec4 color[" + toString(textureSize.x()*textureSize.y()) + "];\n" 915 " highp float s = (float(gx) + 0.5) / float(" + toString(textureSize.x()) + ");\n" 916 " highp float t = (float(gy) + 0.5) / float(" + toString(textureType == TEXTURETYPE_CUBE ? textureSize.x() : textureSize.y()) + ");\n [all...] |
es31fTextureGatherTests.cpp | [all...] |
/external/swiftshader/src/D3D9/ |
Direct3DVertexDeclaration9.cpp | 246 static const int textureSize[4] = 271 offset += textureSize[textureFormats & 0x3];
|
/external/deqp/modules/gles3/stress/ |
es3sSpecialFloatTests.cpp | 271 const int textureSize = 32; 272 std::vector<tcu::Vector<deUint8, 4> > buffer(textureSize*textureSize); 274 for (int x = 0; x < textureSize; ++x) 275 for (int y = 0; y < textureSize; ++y) 279 const deUint8 redComponent = (deUint8)de::clamp(de::abs((float)x / (float)textureSize - 0.5f) * 255.0f + de::abs((float)y / (float)textureSize - 0.5f) * 255.0f, 0.0f, 255.0f); 281 buffer[x * textureSize + y] = tcu::Vector<deUint8, 4>(redComponent, 255, 255, 255); 286 gl.texImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, textureSize, textureSize, 0, GL_RGBA, GL_UNSIGNED_BYTE, buffer[0].getPtr()) [all...] |