Lines Matching defs:lod
214 // 1D lookup LOD computation.
245 // 2D lookup LOD computation.
285 // 3D lookup LOD computation.
345 // 1D lookup LOD.
355 // 2D lookup LOD.
367 // 3D lookup LOD.
381 static inline tcu::Vec4 execSample (const tcu::Texture1DView& src, const ReferenceParams& params, float s, float lod)
384 return tcu::Vec4(src.sampleCompare(params.sampler, params.ref, s, lod), 0.0, 0.0, 1.0f);
386 return src.sample(params.sampler, s, lod);
389 static inline tcu::Vec4 execSample (const tcu::Texture2DView& src, const ReferenceParams& params, float s, float t, float lod)
392 return tcu::Vec4(src.sampleCompare(params.sampler, params.ref, s, t, lod), 0.0, 0.0, 1.0f);
394 return src.sample(params.sampler, s, t, lod);
397 static inline tcu::Vec4 execSample (const tcu::TextureCubeView& src, const ReferenceParams& params, float s, float t, float r, float lod)
400 return tcu::Vec4(src.sampleCompare(params.sampler, params.ref, s, t, r, lod), 0.0, 0.0, 1.0f);
402 return src.sample(params.sampler, s, t, r, lod);
405 static inline tcu::Vec4 execSample (const tcu::Texture2DArrayView& src, const ReferenceParams& params, float s, float t, float r, float lod)
408 return tcu::Vec4(src.sampleCompare(params.sampler, params.ref, s, t, r, lod), 0.0, 0.0, 1.0f);
410 return src.sample(params.sampler, s, t, r, lod);
413 static inline tcu::Vec4 execSample (const tcu::TextureCubeArrayView& src, const ReferenceParams& params, float s, float t, float r, float q, float lod)
416 return tcu::Vec4(src.sampleCompare(params.sampler, params.ref, s, t, r, q, lod), 0.0, 0.0, 1.0f);
418 return src.sample(params.sampler, s, t, r, q, lod);
421 static inline tcu::Vec4 execSample (const tcu::Texture1DArrayView& src, const ReferenceParams& params, float s, float t, float lod)
424 return tcu::Vec4(src.sampleCompare(params.sampler, params.ref, s, t, lod), 0.0, 0.0, 1.0f);
426 return src.sample(params.sampler, s, t, lod);
440 // Coordinates and lod per triangle.
457 float lod = triLod[triNdx];
459 dst.setPixel(execSample(src, params, s, lod) * params.colorScale + params.colorBias, x, y);
475 // Coordinates and lod per triangle.
494 float lod = triLod[triNdx];
496 dst.setPixel(execSample(src, params, s, t, lod) * params.colorScale + params.colorBias, x, y);
533 float lod = computeProjectedTriLod(params.lodMode, triU[triNdx], triW[triNdx], triWx, triWy, (float)dst.getWidth(), (float)dst.getHeight())
536 dst.setPixel(execSample(src, params, s, lod) * params.colorScale + params.colorBias, px, py);
577 float lod = computeProjectedTriLod(params.lodMode, triU[triNdx], triV[triNdx], triW[triNdx], triWx, triWy, (float)dst.getWidth(), (float)dst.getHeight())
580 dst.setPixel(execSample(src, params, s, t, lod) * params.colorScale + params.colorBias, px, py);
615 // \note Derivate signs don't matter when computing lod
689 const float lod = de::clamp(computeCubeLodFromDerivates(params.lodMode, coord, coordDx, coordDy, srcSize) + lodBias, params.minLod, params.maxLod);
691 dst.setPixel(execSample(src, params, coord.x(), coord.y(), coord.z(), lod) * params.colorScale + params.colorBias, px, py);
717 // Coordinates and lod per triangle.
738 float lod = triLod[triNdx];
740 dst.setPixel(execSample(src, params, s, t, r, lod) * params.colorScale + params.colorBias, x, y);
766 // Coordinates and lod per triangle.
785 float lod = triLod[triNdx];
787 dst.setPixel(execSample(src, params, s, t, lod) * params.colorScale + params.colorBias, x, y);
812 // Coordinates and lod per triangle.
833 float lod = triLod[triNdx];
835 dst.setPixel(src.sample(params.sampler, s, t, r, lod) * params.colorScale + params.colorBias, x, y);
880 float lod = computeProjectedTriLod(params.lodMode, triU[triNdx], triV[triNdx], triW[triNdx], triP[triNdx], triWx, triWy, (float)dst.getWidth(), (float)dst.getHeight())
883 dst.setPixel(src.sample(params.sampler, s, t, r, lod) * params.colorScale + params.colorBias, px, py);
945 const float lod = de::clamp(computeCubeLodFromDerivates(params.lodMode, coord, coordDx, coordDy, src.getSize()) + lodBias, params.minLod, params.maxLod);
947 dst.setPixel(execSample(src, params, coord.x(), coord.y(), coord.z(), coordQ, lod) * params.colorScale + params.colorBias, px, py);
1714 // Coordinates and lod per triangle.
1763 // Compute lod bounds across lodOffsets range.
1818 // Coordinates and lod per triangle.
1871 // Compute lod bounds across lodOffsets range.
2076 // Compute lod bounds across lodOffsets range.
2182 // Coordinates and lod per triangle.
2250 // Compute lod bounds across lodOffsets range.
2350 const float srcSize = float(src.getWidth()); // For lod computation, thus #layers is ignored.
2352 // Coordinates and lod per triangle.
2403 // Compute lod bounds across lodOffsets range.
2458 const tcu::Vec2 srcSize = tcu::IVec2(src.getWidth(), src.getHeight()).asFloat(); // For lod computation, thus #layers is ignored.
2460 // Coordinates and lod per triangle.
2515 // Compute lod bounds across lodOffsets range.
2724 // Compute lod bounds across lodOffsets range.
2828 // Coordinates and lod per triangle.
2886 // Compute lod bounds across lodOffsets range.
3003 // Compute lod bounds across lodOffsets range.
3063 // Coordinates and lod per triangle.
3123 // Compute lod bounds across lodOffsets range.