Lines Matching defs:texture

1259 bool isLookupResultValid (const Texture2DView& texture, const Sampler& sampler, const LookupPrecision& prec, const Vec2& coord, const Vec2& lodBounds, const Vec4& result)
1270 if (isLevelSampleResultValid(texture.getLevel(0), sampler, sampler.magFilter, prec, coord, 0, result))
1279 const int maxTexLevel = texture.getNumLevels()-1;
1295 if (isMipmapLinearSampleResultValid(texture.getLevel(level), texture.getLevel(level+1), sampler, getLevelFilter(sampler.minFilter), prec, coord, 0, Vec2(minF, maxF), result))
1310 if (isLevelSampleResultValid(texture.getLevel(level), sampler, getLevelFilter(sampler.minFilter), prec, coord, 0, result))
1316 if (isLevelSampleResultValid(texture.getLevel(0), sampler, sampler.minFilter, prec, coord, 0, result))
1324 bool isLookupResultValid (const Texture1DView& texture, const Sampler& sampler, const LookupPrecision& prec, const float coord, const Vec2& lodBounds, const Vec4& result)
1335 if (isLevelSampleResultValid(texture.getLevel(0), sampler, sampler.magFilter, prec, coord, 0, result))
1344 const int maxTexLevel = texture.getNumLevels()-1;
1360 if (isMipmapLinearSampleResultValid(texture.getLevel(level), texture.getLevel(level+1), sampler, getLevelFilter(sampler.minFilter), prec, coord, 0, Vec2(minF, maxF), result))
1375 if (isLevelSampleResultValid(texture.getLevel(level), sampler, getLevelFilter(sampler.minFilter), prec, coord, 0, result))
1381 if (isLevelSampleResultValid(texture.getLevel(0), sampler, sampler.minFilter, prec, coord, 0, result))
1597 static void getCubeLevelFaces (const TextureCubeView& texture, const int levelNdx, ConstPixelBufferAccess (&out)[CUBEFACE_LAST])
1600 out[faceNdx] = texture.getLevelFace(levelNdx, (CubeFace)faceNdx);
1603 bool isLookupResultValid (const TextureCubeView& texture, const Sampler& sampler, const LookupPrecision& prec, const Vec3& coord, const Vec2& lodBounds, const Vec4& result)
1626 getCubeLevelFaces(texture, 0, faces);
1637 const int maxTexLevel = texture.getNumLevels()-1;
1656 getCubeLevelFaces(texture, levelNdx, faces0);
1657 getCubeLevelFaces(texture, levelNdx + 1, faces1);
1675 getCubeLevelFaces(texture, levelNdx, faces);
1684 getCubeLevelFaces(texture, 0, faces);
1706 bool isLookupResultValid (const Texture1DArrayView& texture, const Sampler& sampler, const LookupPrecision& prec, const Vec2& coord, const Vec2& lodBounds, const Vec4& result)
1708 const IVec2 layerRange = computeLayerRange(texture.getNumLayers(), prec.coordBits.y(), coord.y());
1721 if (isLevelSampleResultValid(texture.getLevel(0), sampler, sampler.magFilter, prec, coordX, layer, result))
1730 const int maxTexLevel = texture.getNumLevels()-1;
1746 if (isMipmapLinearSampleResultValid(texture.getLevel(level), texture.getLevel(level+1), sampler, getLevelFilter(sampler.minFilter), prec, coordX, layer, Vec2(minF, maxF), result))
1761 if (isLevelSampleResultValid(texture.getLevel(level), sampler, getLevelFilter(sampler.minFilter), prec, coordX, layer, result))
1767 if (isLevelSampleResultValid(texture.getLevel(0), sampler, sampler.minFilter, prec, coordX, layer, result))
1776 bool isLookupResultValid (const Texture2DArrayView& texture, const Sampler& sampler, const LookupPrecision& prec, const Vec3& coord, const Vec2& lodBounds, const Vec4& result)
1778 const IVec2 layerRange = computeLayerRange(texture.getNumLayers(), prec.coordBits.z(), coord.z());
1791 if (isLevelSampleResultValid(texture.getLevel(0), sampler, sampler.magFilter, prec, coordXY, layer, result))
1800 const int maxTexLevel = texture.getNumLevels()-1;
1816 if (isMipmapLinearSampleResultValid(texture.getLevel(level), texture.getLevel(level+1), sampler, getLevelFilter(sampler.minFilter), prec, coordXY, layer, Vec2(minF, maxF), result))
1831 if (isLevelSampleResultValid(texture.getLevel(level), sampler, getLevelFilter(sampler.minFilter), prec, coordXY, layer, result))
1837 if (isLevelSampleResultValid(texture.getLevel(0), sampler, sampler.minFilter, prec, coordXY, layer, result))
1874 bool isLookupResultValid (const Texture3DView& texture, const Sampler& sampler, const LookupPrecision& prec, const Vec3& coord, const Vec2& lodBounds, const Vec4& result)
1885 if (isLevelSampleResultValid(texture.getLevel(0), sampler, sampler.magFilter, prec, coord, result))
1894 const int maxTexLevel = texture.getNumLevels()-1;
1910 if (isMipmapLinearSampleResultValid(texture.getLevel(level), texture.getLevel(level+1), sampler, getLevelFilter(sampler.minFilter), prec, coord, Vec2(minF, maxF), result))
1925 if (isLevelSampleResultValid(texture.getLevel(level), sampler, getLevelFilter(sampler.minFilter), prec, coord, result))
1931 if (isLevelSampleResultValid(texture.getLevel(0), sampler, sampler.minFilter, prec, coord, result))
1939 static void getCubeArrayLevelFaces (const TextureCubeArrayView& texture, const int levelNdx, const int layerNdx, ConstPixelBufferAccess (&out)[CUBEFACE_LAST])
1941 const ConstPixelBufferAccess& level = texture.getLevel(levelNdx);
1951 bool isLookupResultValid (const TextureCubeArrayView& texture, const Sampler& sampler, const LookupPrecision& prec, const IVec4& coordBits, const Vec4& coord, const Vec2& lodBounds, const Vec4& result)
1953 const IVec2 layerRange = computeLayerRange(texture.getNumLayers(), coordBits.w(), coord.w());
1978 getCubeArrayLevelFaces(texture, 0, layerNdx, faces);
1989 const int maxTexLevel = texture.getNumLevels()-1;
2008 getCubeArrayLevelFaces(texture, levelNdx, layerNdx, faces0);
2009 getCubeArrayLevelFaces(texture, levelNdx + 1, layerNdx, faces1);
2027 getCubeArrayLevelFaces(texture, levelNdx, layerNdx, faces);
2036 getCubeArrayLevelFaces(texture, 0, layerNdx, faces);
2305 bool isGatherOffsetsResultValid (const Texture2DView& texture,
2313 return isGatherOffsetsResultValid(texture.getLevel(0), sampler, prec, coord, 0, componentNdx, offsets, result);
2316 bool isGatherOffsetsResultValid (const Texture2DView& texture,
2324 return isGatherOffsetsResultValid(texture.getLevel(0), sampler, prec, coord, 0, componentNdx, offsets, result);
2327 bool isGatherOffsetsResultValid (const Texture2DView& texture,
2335 return isGatherOffsetsResultValid(texture.getLevel(0), sampler, prec, coord, 0, componentNdx, offsets, result);
2339 static bool is2DArrayGatherOffsetsResultValid (const Texture2DArrayView& texture,
2347 const IVec2 layerRange = computeLayerRange(texture.getNumLayers(), prec.coordBits.z(), coord.z());
2350 if (isGatherOffsetsResultValid(texture.getLevel(0), sampler, prec, coord.swizzle(0,1), layer, componentNdx, offsets, result))
2356 bool isGatherOffsetsResultValid (const Texture2DArrayView& texture,
2364 return is2DArrayGatherOffsetsResultValid(texture, sampler, prec, coord, componentNdx, offsets, result);
2367 bool isGatherOffsetsResultValid (const Texture2DArrayView& texture,
2375 return is2DArrayGatherOffsetsResultValid(texture, sampler, prec, coord, componentNdx, offsets, result);
2378 bool isGatherOffsetsResultValid (const Texture2DArrayView& texture,
2386 return is2DArrayGatherOffsetsResultValid(texture, sampler, prec, coord, componentNdx, offsets, result);
2390 static bool isGatherResultValid (const TextureCubeView& texture,
2397 const int size = texture.getLevelFace(0, coords.face).getWidth();
2411 faces[face] = texture.getLevelFace(0, CubeFace(face));
2447 static bool isCubeGatherResultValid (const TextureCubeView& texture,
2466 if (isGatherResultValid(texture, sampler, prec, faceCoords, componentNdx, result))
2473 bool isGatherResultValid (const TextureCubeView& texture,
2480 return isCubeGatherResultValid(texture, sampler, prec, coord, componentNdx, result);
2483 bool isGatherResultValid (const TextureCubeView& texture,
2490 return isCubeGatherResultValid(texture, sampler, prec, coord, componentNdx, result);
2493 bool isGatherResultValid (const TextureCubeView& texture,
2500 return isCubeGatherResultValid(texture, sampler, prec, coord, componentNdx, result);