HomeSort by relevance Sort by last modified time
    Searched refs:textureSize (Results 1 - 15 of 15) sorted by null

  /external/skia/src/gpu/
GrTexture.cpp 34 size_t textureSize;
37 textureSize = GrCompressedFormatDataSize(fDesc.fConfig, fDesc.fWidth, fDesc.fHeight);
39 textureSize = (size_t) fDesc.fWidth * fDesc.fHeight * GrBytesPerPixel(fDesc.fConfig);
45 textureSize += textureSize/3;
49 SkASSERT(textureSize <= WorseCaseSize(fDesc));
51 return textureSize;
GrLayerCache.cpp 108 SkISize textureSize = SkISize::Make(kAtlasTextureWidth, kAtlasTextureHeight);
110 kRenderTarget_GrSurfaceFlag, textureSize,
  /external/mesa3d/src/mesa/drivers/dri/radeon/server/
radeon_dri.h 82 int textureSize; /**< \brief size of texture date */
  /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 299 static float calculateLodMax(const tcu::Vector<tcu::Vec2, 3>& derivateParts, const tcu::IVec3& textureSize, const Vec2& screenDerivate)
301 float dudx = derivateParts[0].x() * (float)textureSize.x() * screenDerivate.x();
302 float dudy = derivateParts[0].y() * (float)textureSize.x() * screenDerivate.y();
303 float dvdx = derivateParts[1].x() * (float)textureSize.y() * screenDerivate.x();
304 float dvdy = derivateParts[1].y() * (float)textureSize.y() * screenDerivate.y();
305 float dwdx = derivateParts[2].x() * (float)textureSize.z() * screenDerivate.x();
306 float dwdy = derivateParts[2].y() * (float)textureSize.z() * screenDerivate.y();
315 static float calculateLodMin(const tcu::Vector<tcu::Vec2, 3>& derivateParts, const tcu::IVec3& textureSize, const Vec2& screenDerivate)
317 float dudx = derivateParts[0].x() * (float)textureSize.x() * screenDerivate.x();
318 float dudy = derivateParts[0].y() * (float)textureSize.x() * screenDerivate.y()
    [all...]
es3fVertexTextureTests.cpp 124 static inline Vec2 safe2DTexCoords (const Vec2& raw, const IVec2& textureSize)
126 return safeCoords(raw, textureSize, Vec2(0.5f));
129 static inline Vec3 safe2DArrayTexCoords (const Vec3& raw, const IVec3& textureSize)
131 return safeCoords(raw, textureSize, Vec3(0.5f, 0.5f, 0.0f));
134 static inline Vec3 safe3DTexCoords (const Vec3& raw, const IVec3& textureSize)
136 return safeCoords(raw, textureSize, Vec3(0.5f));
237 PosTexCoordQuadGrid (int gridSize, const IVec2& renderSize, const TexSizeIVec& textureSize, const TexCoordParams& texCoordParams, bool useSafeTexCoords);
249 void initializeTexCoords (const TexSizeIVec& textureSize, const TexCoordParams& texCoordParams, bool useSafeTexCoords);
276 PosTexCoordQuadGrid<TexType>::PosTexCoordQuadGrid (int gridSize, const IVec2& renderSize, const TexSizeIVec& textureSize, const TexCoordParams& texCoordParams, bool useSafeTexCoords)
311 initializeTexCoords(textureSize, texCoordParams, useSafeTexCoords)
    [all...]
es3fShaderTextureFunctionTests.cpp     [all...]
  /external/deqp/external/vulkancts/modules/vulkan/pipeline/
vktPipelineImageUtil.cpp 548 deUint32 textureSize = 0;
558 textureSize = getNextMultiple(offsetMultiples, textureSize);
559 textureSize += level.getWidth() * level.getHeight() * level.getDepth() * level.getFormat().getPixelSize();
563 return textureSize;
572 deUint32 textureSize = 0;
581 textureSize = getNextMultiple(offsetMultiples, textureSize);
582 textureSize += getCompressedLevel(levelNdx, layerNdx).getDataSize();
586 return textureSize;
    [all...]
  /external/deqp/modules/gles2/functional/
es2fTextureUnitTests.cpp 219 static float calculateLodMax(const Vec4& derivateParts, const tcu::IVec2& textureSize, const Vec2& screenDerivate)
221 float dudx = derivateParts.x() * (float)textureSize.x() * screenDerivate.x();
222 float dudy = derivateParts.y() * (float)textureSize.x() * screenDerivate.y();
223 float dvdx = derivateParts.z() * (float)textureSize.y() * screenDerivate.x();
224 float dvdy = derivateParts.w() * (float)textureSize.y() * screenDerivate.y();
230 static float calculateLodMin(const Vec4& derivateParts, const tcu::IVec2& textureSize, const Vec2& screenDerivate)
232 float dudx = derivateParts.x() * (float)textureSize.x() * screenDerivate.x();
233 float dudy = derivateParts.y() * (float)textureSize.x() * screenDerivate.y();
234 float dvdx = derivateParts.z() * (float)textureSize.y() * screenDerivate.x();
235 float dvdy = derivateParts.w() * (float)textureSize.y() * screenDerivate.y()
    [all...]
es2fVertexTextureTests.cpp 106 static inline Vec2 safe2DTexCoords (const Vec2& raw, const IVec2& textureSize)
108 return safeCoords(raw, textureSize, Vec2(0.5f));
187 PosTexCoordQuadGrid (int gridSize, const IVec2& renderSize, const TexSizeIVec& textureSize, const TexCoordParams& texCoordParams, bool useSafeTexCoords);
199 void initializeTexCoords (const TexSizeIVec& textureSize, const TexCoordParams& texCoordParams, bool useSafeTexCoords);
226 PosTexCoordQuadGrid<TexType>::PosTexCoordQuadGrid (int gridSize, const IVec2& renderSize, const TexSizeIVec& textureSize, const TexCoordParams& texCoordParams, bool useSafeTexCoords)
261 initializeTexCoords(textureSize, texCoordParams, useSafeTexCoords);
269 void PosTexCoordQuadGrid<TEXTURETYPE_2D>::initializeTexCoords (const IVec2& textureSize, const TexCoordParams& texCoordParams, bool useSafeTexCoords)
281 m_texCoords.push_back(useSafeTexCoords ? safe2DTexCoords(rawCoord, textureSize) : rawCoord);
286 void PosTexCoordQuadGrid<TEXTURETYPE_CUBE>::initializeTexCoords (const IVec2& textureSize, const TexCoordParams& texCoordParams, bool useSafeTexCoords)
303 const Vec2 safeFaceCoord = useSafeTexCoords ? safe2DTexCoords(rawFaceCoord, textureSize) : rawFaceCoord
    [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 826 const IVec3& textureSize,
836 const int numSlicesOrFaces = textureType == TEXTURETYPE_CUBE ? 6 : textureSize.z();
839 tcu::TextureLevel resultSlice (textureFormat, textureSize.x(), textureSize.y());
883 const IVec3& textureSize,
899 " vec4 color[" + toString(textureSize.x()*textureSize.y()) + "];\n"
914 " highp float s = (float(gx) + 0.5) / float(" + toString(textureSize.x()) + ");\n"
915 " highp float t = (float(gy) + 0.5) / float(" + toString(textureType == TEXTURETYPE_CUBE ? textureSize.x() : textureSize.y()) + ");\n
    [all...]
es31fTextureGatherTests.cpp     [all...]
  /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...]
  /external/deqp/external/vulkancts/modules/vulkan/shaderexecutor/
vktShaderExecutor.cpp     [all...]

Completed in 666 milliseconds