/development/ndk/sources/android/ndk_helper/ |
vecmath.cpp | 28 Vec3::Vec3( const Vec4& vec ) 36 // vec4 38 Vec4 Vec4::operator*( const Mat4& rhs ) const 40 Vec4 out; 105 Vec4 Mat4::operator*( const Vec4& rhs ) const 107 Vec4 ret;
|
/external/deqp/framework/common/ |
tcuTestLog.cpp | 166 void TestLog::writeImage (const char* name, const char* description, const ConstPixelBufferAccess& access, const Vec4& pixelScale, const Vec4& pixelBias, qpImageCompressionMode compressionMode) 207 Vec4 s = access.sample2D(sampler, sampler.minFilter, xf, yf, 0)*pixelScale + pixelBias; 248 Vec4 p = blendImageAccess.getPixel(px, py); 249 Vec4 s = access.sample3D(sampler, sampler.minFilter, xf, yf, zf); 250 Vec4 b = s + p*blendFactor; 274 Vec4 s = blendImageAccess.getPixel(px, py)*pixelScale + pixelBias;
|
tcuRGBA.hpp | 73 explicit RGBA (const Vec4& v); 89 Vec4 toVec (void) const;
|
/external/deqp/modules/gles3/functional/ |
es3fRasterizerDiscardTests.cpp | 38 using tcu::Vec4; 49 static const Vec4 FAIL_COLOR_RED = Vec4(1.0f, 0.0f, 0.0f, 1.0f); 50 static const Vec4 PASS_COLOR_BLUE = Vec4(0.0f, 0.0f, 0.5f, 1.0f); 51 static const Vec4 BLACK_COLOR = Vec4(0.0f, 0.0f, 0.0f, 1.0f); 207 "layout(location = 0) in mediump vec4 a_position;\n" 216 "layout(location = 0) out mediump vec4 dEQP_FragColor;\n" 217 "uniform mediump vec4 u_color;\n [all...] |
es3fOcclusionQueryTests.cpp | 44 static const tcu::Vec4 DEPTH_WRITE_COLOR = tcu::Vec4(0.0f, 0.0f, 1.0f, 1.0f); 45 static const tcu::Vec4 DEPTH_CLEAR_COLOR = tcu::Vec4(0.0f, 0.5f, 0.8f, 1.0f); 46 static const tcu::Vec4 STENCIL_WRITE_COLOR = tcu::Vec4(0.0f, 1.0f, 0.0f, 1.0f); 47 static const tcu::Vec4 STENCIL_CLEAR_COLOR = tcu::Vec4(0.0f, 0.8f, 0.5f, 1.0f); 48 static const tcu::Vec4 TARGET_COLOR = tcu::Vec4(1.0f, 0.0f, 0.0f, 1.0f) [all...] |
es3fFboTestCase.cpp | 127 void FboTestCase::readPixels (tcu::Surface& dst, int x, int y, int width, int height, const tcu::TextureFormat& format, const tcu::Vec4& scale, const tcu::Vec4& bias) 357 void FboTestCase::clearColorBuffer (const tcu::TextureFormat& format, const tcu::Vec4& value)
|
es3fTextureMipmapTests.cpp | 57 using tcu::Vec4; 345 static const Vec4 s_projections[] = 347 Vec4(1.2f, 1.0f, 0.7f, 1.0f), 348 Vec4(1.3f, 0.8f, 0.6f, 2.0f), 349 Vec4(0.8f, 1.0f, 1.7f, 0.6f), 350 Vec4(1.2f, 1.0f, 1.7f, 1.5f) 661 static const Vec4 s_projections[] = 663 Vec4(1.2f, 1.0f, 0.7f, 1.0f), 664 Vec4(1.3f, 0.8f, 0.6f, 1.1f), 665 Vec4(0.8f, 1.0f, 1.2f, 0.8f) [all...] |
es3fFboRenderTest.cpp | 49 using tcu::Vec4; 422 tcu::Vec4 clearColor = tcu::Vec4(0.125f, 0.25f, 0.5f, 1.0f); 533 Vec4 fboOutScale = fboRangeInfo.valueMax - fboRangeInfo.valueMin; 534 Vec4 fboOutBias = fboRangeInfo.valueMin; 703 flatShader.setColor(context, flatShaderID, Vec4(0.0f, 1.0f, 0.0f, 1.0f)); 731 readPixels(context, dst, 0, 0, width, height, glu::mapGLInternalFormat(fboA.getConfig().colorFormat), Vec4(1.0f), Vec4(0.0f)); 834 readPixels(context, dst, 0, 0, width, height, colorFormat, Vec4(1.0f), Vec4(0.0f)) [all...] |
es3fShaderDiscardTests.cpp | 61 void setupUniforms (int programID, const tcu::Vec4& constCoords); 76 "in highp vec4 a_position;\n" 77 "in highp vec4 a_coords;\n" 78 "out mediump vec4 v_color;\n" 79 "out mediump vec4 v_coords;\n\n" 83 " v_color = vec4(a_coords.xyz, 1.0);\n" 111 void ShaderDiscardCase::setupUniforms (int programID, const tcu::Vec4&) 181 "in mediump vec4 v_color;\n" 182 "in mediump vec4 v_coords;\n" 183 "layout(location = 0) out mediump vec4 o_color;\n [all...] |
es3fDrawTests.cpp | 592 "in highp vec4 a_position;\n" 593 "in highp vec4 a_offset;\n" 594 "in highp vec4 a_color;\n" 595 "out mediump vec4 v_color;\n" 603 "layout(location = 0) out mediump vec4 dEQP_FragColor;\n" 604 "in mediump vec4 v_color;\n" 679 const tcu::Vec4 green (0, 1, 0, 1); 680 const tcu::Vec4 yellow (1, 1, 0, 1); 693 const tcu::Vec4 vertexPositions[] = 695 tcu::Vec4(0, 0, 0, 1) [all...] |
/external/deqp/modules/gles2/functional/ |
es2fTextureUnitTests.cpp | 45 using tcu::Vec4; 166 " mediump vec4 color = vec4(0.0);\n" + 190 decl << sglr::pdec::VertexSource("attribute highp vec4 a_position;\n" 205 static Vec4 calculateLodDerivateParts(const Mat3& transformation) 212 return Vec4(trans10.x() - trans00.x(), 219 static float calculateLodMax(const Vec4& derivateParts, const tcu::IVec2& textureSize, const Vec2& screenDerivate) 230 static float calculateLodMin(const Vec4& derivateParts, const tcu::IVec2& textureSize, const Vec2& screenDerivate) 255 vector<Vec4> m_lodDerivateParts; // Parts of lod derivates; computed in init(), used in eval(). 473 Vec4 outColors[4] = { Vec4(0.0f), Vec4(0.0f), Vec4(0.0f), Vec4(0.0f) } [all...] |
es2fReadPixelsTests.cpp | 84 "\tgl_Position = vec4(a_coord, 0.0, 1.0);\n" 90 "\tgl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);\n" 139 reference.getLevel(0).setPixel(tcu::Vec4(0.0f, 0.0f, 0.0f, 1.0f), x, y); 202 tcu::clear(reference.getLevel(0), tcu::Vec4(red, green, blue, alpha)); 247 if (tcu::floatThresholdCompare(m_testCtx.getLog(), "Result", "Result", reference.getLevel(0), tcu::PixelBufferAccess(format, width, height, 1, rowPitch, 0, &(pixelData[0])), tcu::Vec4(redThreshold, greenThreshold, blueThreshold, alphaThreshold), tcu::COMPARE_LOG_RESULT))
|
es2fShaderDiscardTests.cpp | 67 void setupUniforms (int programID, const tcu::Vec4& constCoords); 81 "attribute highp vec4 a_position;\n" 82 "attribute highp vec4 a_coords;\n" 83 "varying mediump vec4 v_color;\n" 84 "varying mediump vec4 v_coords;\n\n" 88 " v_color = vec4(a_coords.xyz, 1.0);\n" 131 void ShaderDiscardCase::setupUniforms (int programID, const tcu::Vec4&) 200 return "varying mediump vec4 v_color;\n" 201 "varying mediump vec4 v_coords;\n" 211 return "varying mediump vec4 v_color;\n [all...] |
es2fRandomFragmentOpTests.cpp | 57 using tcu::Vec4; 69 static const tcu::Vec4 CLEAR_COLOR (0.25f, 0.5f, 0.75f, 1.0f); 125 dst.blendColor = tcu::clamp(src.blendColor, Vec4(0.0f), Vec4(1.0f)); 307 const Vec4 clearColor = CLEAR_COLOR;
|
/external/deqp/modules/gles31/functional/ |
es31fShaderPackingFunctionTests.cpp | 762 std::vector<tcu::Vec4> inputs; 769 inputs.push_back(tcu::Vec4(0.0f, 0.0f, 0.0f, 0.0f)); 770 inputs.push_back(tcu::Vec4(-1.0f, 1.0f, -1.0f, 1.0f)); 771 inputs.push_back(tcu::Vec4(0.5f, -0.5f, -0.5f, 0.5f)); 772 inputs.push_back(tcu::Vec4(-1.5f, 1.5f, -1.5f, 1.5f)); 773 inputs.push_back(tcu::Vec4(0.25f, -0.75f, -0.25f, 0.75f)); 782 inputs.push_back(tcu::Vec4(x, y, z, w)); 792 inputs.push_back(tcu::Vec4(x, y, z, w)); 877 std::vector<tcu::Vec4> outputs; 933 << "vec4(" << HexFloat(ref0) << ", " << HexFloat(ref1) << ", " << HexFloat(ref2) << ", " << HexFloat(ref3) (…) [all...] |
es31fMultisampleShaderRenderCase.cpp | 47 "in highp vec4 a_position;\n" 48 "out highp vec4 v_position;\n" 148 static const tcu::Vec4 fullscreenQuad[] = 150 tcu::Vec4( 1.0f, -1.0f, 0.0f, 1.0f), 151 tcu::Vec4( 1.0f, 1.0f, 0.0f, 1.0f), 152 tcu::Vec4(-1.0f, -1.0f, 0.0f, 1.0f), 153 tcu::Vec4(-1.0f, 1.0f, 0.0f, 1.0f), 683 "in mediump vec4 v_position;\n" 684 "layout(location = 0) out mediump vec4 fragColor;\n" 690 " mediump vec4 colorSum = vec4(0.0, 0.0, 0.0, 0.0);\n [all...] |
es31fTextureFilteringTests.cpp | 206 const tcu::Vec4 cScale = fmtInfo.valueMax-fmtInfo.valueMin; 207 const tcu::Vec4 cBias = fmtInfo.valueMin; 233 const tcu::Vec4 gMin = tcu::Vec4(0.0f, 0.0f, 0.0f, 1.0f).swizzle(swz[0],swz[1],swz[2],swz[3])*cScale + cBias; 234 const tcu::Vec4 gMax = tcu::Vec4(1.0f, 1.0f, 1.0f, 0.0f).swizzle(swz[0],swz[1],swz[2],swz[3])*cScale + cBias;
|
es31fFboTestCase.cpp | 131 void FboTestCase::readPixels (tcu::Surface& dst, int x, int y, int width, int height, const tcu::TextureFormat& format, const tcu::Vec4& scale, const tcu::Vec4& bias) 362 void FboTestCase::clearColorBuffer (const tcu::TextureFormat& format, const tcu::Vec4& value)
|
es31fShaderMultisampleInterpolationTests.cpp | 238 "in highp vec4 a_position;\n"; 247 buf << "sample out highp vec4 v_input;\n"; 267 buf << " v_input = vec4(a_position.xy, a_position.x * 2.0 - a_position.y, a_position.x*a_position.y);\n"; 298 buf << "sample in highp vec4 v_input;\n"; 307 buf << "layout(location = 0) out mediump vec4 fragColor;\n" 326 buf << " fragColor = vec4(1.0, 1.0, 1.0, 1.0);\n" 329 " fragColor = vec4(0.0, 0.0, 0.0, 1.0);\n" 344 return "Test with vec4 varying"; 452 "in highp vec4 a_position;\n"; 461 buf << "out highp vec4 v_input;\n" [all...] |
/external/deqp/modules/glshared/ |
glsBufferTestUtil.cpp | 436 " gl_Position = vec4(a_position, 0.0, 1.0);\n" 442 "layout(location = 0) out mediump vec4 o_color;\n" 445 " o_color = vec4(v_byteVec, 1.0);\n" 523 static inline tcu::Vec4 fetchVtxColor (const deUint8* ptr, int vtxNdx) 533 using tcu::Vec4; 544 Vec4 v00 = fetchVtxColor(inPtr, quadNdx*4 + 0); 545 Vec4 v10 = fetchVtxColor(inPtr, quadNdx*4 + 1); 546 Vec4 v01 = fetchVtxColor(inPtr, quadNdx*4 + 2); 547 Vec4 v11 = fetchVtxColor(inPtr, quadNdx*4 + 3); 558 const Vec4& t0 = tri ? v00 : v11 [all...] |
glsFragmentOpUtil.cpp | 49 "attribute highp vec4 a_position;\n" 50 "attribute mediump vec4 a_color;\n" 51 "varying mediump vec4 v_color;\n" 58 "varying mediump vec4 v_color;\n" 67 "in highp vec4 a_position;\n" 68 "in mediump vec4 a_color;\n" 69 "out mediump vec4 v_color;\n" 77 "in mediump vec4 v_color;\n" 78 "layout(location = 0) out mediump vec4 o_color;\n" 87 "in vec4 a_position;\n [all...] |
glsInteractionTestUtil.cpp | 40 using tcu::Vec4; 44 static Vec4 getRandomColor (de::Random& rnd) 51 return Vec4(r, g, b, a);
|
/external/deqp/modules/gles3/stress/ |
es3sSpecialFloatTests.cpp | 84 "layout(location = 0) out mediump vec4 fragColor;\n" 85 "in mediump vec4 v_out;\n" 91 "in highp vec4 a_pos;\n" 92 "in highp vec4 a_attr;\n" 93 "out highp vec4 v_attr;\n" 223 static const tcu::Vec4 fullscreenQuad[4] = 225 tcu::Vec4(-1.0f, -1.0f, 0.0f, 1.0f), 226 tcu::Vec4(-1.0f, 1.0f, 0.0f, 1.0f), 227 tcu::Vec4( 1.0f, -1.0f, 0.0f, 1.0f), 228 tcu::Vec4( 1.0f, 1.0f, 0.0f, 1.0f) [all...] |
/external/deqp/framework/referencerenderer/ |
rrRenderer.cpp | 195 ClipVec4 vec4ToClipVec4 (const tcu::Vec4& v) 200 tcu::Vec4 clipVec4ToVec4 (const ClipVec4& v) 202 return tcu::Vec4((float)v.x(), (float)v.y(), (float)v.z(), (float)v.w()); 474 tcu::Vec2 to2DCartesian (const tcu::Vec4& p) 670 const tcu::Vec4 out0 = list[inputTriangleNdx].v0->outputs[outputNdx].get<float>(); 671 const tcu::Vec4 out1 = list[inputTriangleNdx].v1->outputs[outputNdx].get<float>(); 672 const tcu::Vec4 out2 = list[inputTriangleNdx].v2->outputs[outputNdx].get<float>(); 761 const tcu::Vec4 a0 = l.v0->outputs[outputNdx].get<float>(); 762 const tcu::Vec4 a1 = l.v1->outputs[outputNdx].get<float>(); 812 packet.position = tcu::Vec4(packet.position.x()/packet.position.w() [all...] |
/external/deqp/modules/gles31/scripts/ |
gen-implicit-conversions.py | 7 from genutil import Scalar, Vec2, Vec3, Vec4, Uint, UVec2, UVec3, UVec4, CaseGroup 217 "ivec4": [Vec4(x[0], x[1], x[2], x[3]) for x in IN_IVECTOR], 218 "uvec4": [Vec4(x[0], x[1], x[2], x[3]) for x in IN_UVECTOR], 222 "vec4": [Vec4(x[0], x[1], x[2], x[3]).toFloat() for x in IN_IVECTOR], 232 "ivec4": ["uvec4", "vec4"], 233 "uvec4": ["vec4"] 237 "int": ["vec2", "vec3", "vec4", "uvec2", "uvec3", "uvec4"], 238 "uint": ["vec2", "vec3", "vec4"] 250 "float": ["vec2", "vec3", "vec4"], [all...] |