/external/deqp/external/vulkancts/modules/vulkan/ycbcr/ |
vktYCbCrViewTests.cpp | 59 using tcu::Vec2; 423 void generateLookupCoordinates (const UVec2& imageSize, size_t numCoords, de::Random* rnd, vector<Vec2>* dst) 434 (*dst)[coordNdx] = Vec2(x, y); 620 vector<Vec2> texCoord (numValues); 649 const Vec2& coord = texCoord[ndx]; 670 const Vec2& coord = texCoord[ndx];
|
vktYCbCrFormatTests.cpp | 64 using tcu::Vec2; 282 void generateLookupCoordinates (const UVec2& imageSize, vector<Vec2>* dst) 292 (*dst)[texelY*imageSize.x() + texelX] = Vec2(x, y); 442 vector<Vec2> texCoord; 471 const Vec2& coord = texCoord[ndx];
|
/external/deqp/modules/gles3/functional/ |
es3fFlushFinishTests.cpp | 59 using tcu::Vec2; 460 std::vector<Vec2> getPointsFromSamples (const std::vector<FlushFinishCase::Sample>& samples, const deUint64 FlushFinishCase::Sample::*field) 462 vector<Vec2> points(samples.size()); 465 points[ndx] = Vec2(float(samples[ndx].numDrawCalls), float(samples[ndx].*field)); 485 const vector<Vec2> waitTimes = getPointsFromSamples(samples, &Sample::waitTime); 486 const vector<Vec2> readTimes = getPointsFromSamples(samples, &Sample::readPixelsTime);
|
es3fShaderStructTests.cpp | 228 << " mediump vec2 b;" 238 << " S s = S(${COORDS}.x, T(0, vec2(0.0)), ui_one);" 368 << " mediump vec2 b[2];" 432 << " mediump vec2 b[2];" 573 << " mediump vec2 b;" 588 << " S s = S(${COORDS}.x, T(0, vec2(0.0)), ui_one);" 685 << " mediump vec2 b;" 695 << " S s = S(${COORDS}.x, T(0, vec2(0.0)), ui_one);" 799 << " mediump vec2 b;" 828 << " mediump vec2 b; [all...] |
es3fTextureUnitTests.cpp | 45 using tcu::Vec2; 226 lookupCoord = "vec2(" + lookupCoord + ")"; 239 "in highp vec2 v_coord;\n" 273 "in highp vec2 a_coord;\n" 274 "out highp vec2 v_coord;\n" 287 static tcu::Vector<tcu::Vec2, 3> calculateLodDerivateParts (const Mat4& transformation) 294 return tcu::Vector<tcu::Vec2, 3>(Vec2(trans10.x() - trans00.x(), trans01.x() - trans00.x()), 295 Vec2(trans10.y() - trans00.y(), trans01.y() - trans00.y()), 296 Vec2(trans10.z() - trans00.z(), trans01.z() - trans00.z())) [all...] |
/external/deqp/modules/gles2/functional/ |
es2fTextureWrapTests.cpp | 195 computeQuadTexCoord2D(texCoord, tcu::Vec2(-1.5f, -3.0f), tcu::Vec2(1.5f, 2.5f)); 208 computeQuadTexCoord2D(texCoord, tcu::Vec2(-0.5f, 0.75f), tcu::Vec2(0.25f, 1.25f));
|
es2fRasterizationTests.cpp | [all...] |
es2fShaderMatrixTests.cpp | 62 using tcu::Vec2; 73 static const Vec2 s_constInVec2[2] = { Vec2(1.2f, 0.5f), Vec2(0.5f, 1.0f) }; 95 static const Mat3 s_constInMat3[2] = { tcu::translationMatrix(tcu::Vec2(0.2f, -0.3f)), tcu::Mat3(s_constInMat31) }; 157 DECLARE_TYPE_TRAIT(TYPE_FLOAT_VEC2, tcu::Vec2); 339 template <> inline tcu::Vec2 getInputValue<INPUTTYPE_CONST, TYPE_FLOAT_VEC2> (const ShaderEvalContext& evalCtx, int inputNdx) { DE_UNREF(evalCtx); return s_constInVec2[inputNdx]; } 347 template <> inline tcu::Vec2 getInputValue<INPUTTYPE_DYNAMIC, TYPE_FLOAT_VEC2> (const ShaderEvalContext& evalCtx, int inputNdx) { DE_UNREF(inputNdx); return evalCtx.coords.swizzle(0, 1); } 383 inline tcu::Vec3 reduceToVec3 (const tcu::Vec2& value) { return value.swizzle(0,1,0); } [all...] |
es2fTextureUnitTests.cpp | 44 using tcu::Vec2; 155 lookupCoord = "vec2(" + lookupCoord + ")"; 163 "varying mediump vec2 v_coord;\n" 192 "attribute mediump vec2 a_coord;\n" 193 "varying mediump vec2 v_coord;\n" 209 Vec2 trans00 = (transformation * Vec3(0.0f, 0.0f, 1.0f)).xy(); 210 Vec2 trans01 = (transformation * Vec3(0.0f, 1.0f, 1.0f)).xy(); 211 Vec2 trans10 = (transformation * Vec3(1.0f, 0.0f, 1.0f)).xy(); 220 static float calculateLodMax(const Vec4& derivateParts, const tcu::IVec2& textureSize, const Vec2& screenDerivate) 231 static float calculateLodMin(const Vec4& derivateParts, const tcu::IVec2& textureSize, const Vec2& screenDerivate [all...] |
/external/libxcam/modules/soft/ |
soft_image.h | 278 template <typename Vec2> 279 inline Uchar2 convert_to_uchar2 (const Vec2& v) { 283 template <typename Vec2, uint32_t N> 284 inline void convert_to_uchar2_N (const Vec2 *in, Uchar2 *out) {
|
/external/deqp/modules/gles31/functional/ |
es31fTextureGatherTests.cpp | 57 using tcu::Vec2; 524 static tcu::Vector<ColorScalarType, 4> gatherOffsets (const tcu::Texture2DView& texture, const tcu::Sampler& sampler, const Vec2& coord, int componentNdx, const IVec2 (&offsets)[4]) 543 static Vec4 gatherOffsetsCompare (const tcu::Texture2DView& texture, const tcu::Sampler& sampler, float refZ, const Vec2& coord, const IVec2 (&offsets)[4]) 614 const Vec2 viewportCoord = (Vec2((float)px, (float)py) + 0.5f) / Vec2((float)width, (float)height); 692 const Vec2 viewportCoord = (Vec2((float)px, (float)py) + 0.5f) / Vec2((float)width, (float)height); [all...] |
es31fAdvancedBlendTests.cpp | 57 using tcu::Vec2; 417 vector<Vec2> positions (numQuads*4); 420 const Vec2 singleQuadPos[] = 422 Vec2(-1.0f, -1.0f), 423 Vec2(-1.0f, +1.0f), 424 Vec2(+1.0f, -1.0f), 425 Vec2(+1.0f, +1.0f),
|
es31fStencilTexturingTests.cpp | 58 using tcu::Vec2; 89 static void rectsToTriangles (const vector<IVec4>& rects, int width, int height, vector<Vec2>& positions, vector<deUint16>& indices) 109 positions[rectNdx*4 + 0] = Vec2(x0, y0); 110 positions[rectNdx*4 + 1] = Vec2(x1, y0); 111 positions[rectNdx*4 + 2] = Vec2(x0, y1); 112 positions[rectNdx*4 + 3] = Vec2(x1, y1); 139 vector<Vec2> positions; 205 "in highp vec2 a_texCoord;\n" 206 "out highp vec2 v_texCoord;\n" 215 "in highp vec2 v_texCoord;\n [all...] |
/external/deqp/external/vulkancts/modules/vulkan/texture/ |
vktTextureCompressedFormatTests.cpp | 139 computeQuadTexCoord2D(texCoord, tcu::Vec2(0.0f, 0.0f), tcu::Vec2(1.0f, 1.0f));
|
/external/deqp/modules/gles31/scripts/ |
gen-implicit-conversions.py | 29 from genutil import Scalar, Vec2, Vec3, Vec4, Uint, UVec2, UVec3, UVec4, CaseGroup 235 "ivec2": [Vec2(x[0], x[1]) for x in IN_IVECTOR], 236 "uvec2": [Vec2(x[0], x[1]) for x in IN_UVECTOR], 242 "vec2": [Vec2(x[0], x[1]).toFloat() for x in IN_IVECTOR], 250 "ivec2": ["uvec2", "vec2"], 251 "uvec2": ["vec2"], 259 "int": ["vec2", "vec3", "vec4", "uvec2", "uvec3", "uvec4"], 260 "uint": ["vec2", "vec3", "vec4"] 272 "float": ["vec2", "vec3", "vec4"] [all...] |
/external/deqp/external/openglcts/modules/common/ |
glcShaderRenderCase.cpp | 365 tcu::Vec4 ShaderEvalContext::texture2D(int unitNdx, const tcu::Vec2& texCoords) 1038 // Vec2. 1042 Vec2 value; 1045 { "uv2_minusOne", Vec2(-1.0f) }, { "uv2_zero", Vec2(0.0f) }, { "uv2_half", Vec2(0.5f) }, 1046 { "uv2_one", Vec2(1.0f) }, { "uv2_two", Vec2(2.0f) },
|
glcShaderStructTests.cpp | 241 << " mediump vec2 b;" 251 << " S s = S(${COORDS}.x, T(0, vec2(0.0)), ui_one);" 369 << " mediump vec2 b[2];" 431 << " mediump vec2 b[2];" 514 << " mediump vec2 b;" 529 << " S s = S(${COORDS}.x, T(0, vec2(0.0)), ui_one);" 568 << " mediump vec2 b;" 578 << " S s = S(${COORDS}.x, T(0, vec2(0.0)), ui_one);" 670 << " mediump vec2 b;" 696 << " mediump vec2 b; [all...] |
/external/deqp/external/vulkancts/modules/vulkan/draw/ |
vktDrawShaderLayerTests.cpp | 59 using tcu::Vec2; 740 case 0: pos.xy() = Vec2(x, y + height); break; 741 case 1: pos.xy() = Vec2(x + width, y + height); break; 742 case 2: pos.xy() = Vec2(x, y); break; 743 case 3: pos.xy() = Vec2(x + width, y); break; 744 case 4: pos.xy() = Vec2(x + width, y + height); break; 745 case 5: pos.xy() = Vec2(x, y); break; [all...] |
vktDrawShaderViewportIndexTests.cpp | 61 using tcu::Vec2; 657 case 0: pos.xy() = Vec2(-1.0, 1.0); break; 658 case 1: pos.xy() = Vec2( 1.0, 1.0); break; 659 case 2: pos.xy() = Vec2(-1.0, -1.0); break; 660 case 3: pos.xy() = Vec2( 1.0, -1.0); break; 661 case 4: pos.xy() = Vec2( 1.0, 1.0); break; 662 case 5: pos.xy() = Vec2(-1.0, -1.0); break; [all...] |
/external/deqp/external/vulkancts/modules/vulkan/shaderrender/ |
vktShaderRenderTextureGatherTests.cpp | 50 using tcu::Vec2; 99 void computeQuadTexCoord2D (std::vector<float>& dst, const tcu::Vec2& bottomLeft, const tcu::Vec2& topRight) 109 void computeQuadTexCoord2DArray (std::vector<float>& dst, int layerNdx, const tcu::Vec2& bottomLeft, const tcu::Vec2& topRight) 119 void computeQuadTexCoordCube (std::vector<float>& dst, tcu::CubeFace face, const tcu::Vec2& bottomLeft, const tcu::Vec2& topRight) 553 static tcu::Vector<ColorScalarType, 4> gatherOffsets (const tcu::Texture2DView& texture, const tcu::Sampler& sampler, const Vec2& coord, int componentNdx, const IVec2 (&offsets)[4]) 572 static Vec4 gatherOffsetsCompare (const tcu::Texture2DView& texture, const tcu::Sampler& sampler, float refZ, const Vec2& coord, const IVec2 (&offsets)[4]) 643 const Vec2 viewportCoord = (Vec2((float)px, (float)py) + 0.5f) / Vec2((float)width, (float)height) [all...] |
/external/deqp/external/vulkancts/modules/vulkan/tessellation/ |
vktTessellationCoordinatesTests.cpp | 219 static const tcu::Vec2 triangleCorners[3] = 221 tcu::Vec2(0.95f, 0.95f), 222 tcu::Vec2(0.5f, 0.95f - 0.9f*deFloatSqrt(3.0f/4.0f)), 223 tcu::Vec2(0.05f, 0.95f) 231 const tcu::Vec2 dstPos = primitiveType == TESSPRIMITIVETYPE_TRIANGLES ? pt.x()*triangleCorners[0] 236 primitiveType == TESSPRIMITIVETYPE_ISOLINES ? tcu::Vec2((1.0f - pt.x())*quadIsolineLDRU[0] + pt.x()*quadIsolineLDRU[2], 239 : tcu::Vec2(-1.0f);
|
/external/deqp/modules/glshared/ |
glsShaderRenderCase.cpp | 314 tcu::Vec4 ShaderEvalContext::texture2D (int unitNdx, const tcu::Vec2& texCoords) 963 // Vec2. 964 struct Vec2Uniform { const char* name; Vec2 value; }; 967 { "uv2_minusOne", Vec2(-1.0f) }, 968 { "uv2_zero", Vec2(0.0f) }, 969 { "uv2_half", Vec2(0.5f) }, 970 { "uv2_one", Vec2(1.0f) }, 971 { "uv2_two", Vec2(2.0f) },
|
/external/deqp/framework/randomshaders/ |
rsgProgramExecutor.cpp | 196 inline tcu::Vec2 computeGridCellWeights (float cellWidth, float cellHeight, int x, int y) 200 return tcu::Vec2(deFloatFrac(gx), deFloatFrac(gy)); 327 tcu::Vec2 weights = computeGridCellWeights(cellWidth, cellHeight, x, y);
|
/external/deqp/modules/gles2/performance/ |
es2pShaderOperatorTests.cpp | 55 using tcu::Vec2; 299 vector<Vec2> getWorkloadMedianDataPoints (int progNdx) const; //!< [ Vec2(r.workloadSize, r.getMedianTime()) for r in m_workloadRecords[progNdx] ] 388 static int numDistinctX (const vector<Vec2>& data) 396 static gls::LineParameters simpleLinearRegression (const vector<Vec2>& data) 398 const Vec2 mid = mean(data); 405 const Vec2 diff = data[i] - mid; 417 static float simpleLinearRegressionError (const vector<Vec2>& data) 437 static float verticalVariance (const vector<Vec2>& data) 473 static float findSlopePivotX (const vector<Vec2>& data [all...] |
/external/deqp/modules/gles3/performance/ |
es3pShaderOperatorTests.cpp | 55 using tcu::Vec2; 299 vector<Vec2> getWorkloadMedianDataPoints (int progNdx) const; //!< [ Vec2(r.workloadSize, r.getMedianTime()) for r in m_workloadRecords[progNdx] ] 388 static int numDistinctX (const vector<Vec2>& data) 396 static gls::LineParameters simpleLinearRegression (const vector<Vec2>& data) 398 const Vec2 mid = mean(data); 405 const Vec2 diff = data[i] - mid; 417 static float simpleLinearRegressionError (const vector<Vec2>& data) 437 static float verticalVariance (const vector<Vec2>& data) 473 static float findSlopePivotX (const vector<Vec2>& data [all...] |