/external/deqp/modules/gles3/functional/ |
es3fShaderDerivateTests.cpp | 200 static inline tcu::Vec4 readDerivate (const tcu::ConstPixelBufferAccess& surface, const tcu::Vec4& derivScale, const tcu::Vec4& derivBias, int x, int y) 205 static inline tcu::UVec4 getCompExpBits (const tcu::Vec4& v) 326 static inline tcu::Vec4 getDerivateThreshold (const glu::Precision precision, const tcu::Vec4& valueMin, const tcu::Vec4& valueMax, const tcu::Vec4& expectedDerivate) 334 return tcu::Vec4(computeFloatingPointError(expectedDerivate[0], numAccurateBits[0]), 345 const tcu::Vec4& v [all...] |
es3fRasterizationTests.cpp | 56 "in highp vec4 a_position;\n" 57 "in highp vec4 a_color;\n" 58 "${INTERPOLATION}out highp vec4 v_color;\n" 67 "layout(location = 0) out highp vec4 fragColor;\n" 68 "${INTERPOLATION}in highp vec4 v_color;\n" 119 void drawPrimitives (tcu::Surface& result, const std::vector<tcu::Vec4>& vertexData, glw::GLenum primitiveType); 120 void drawPrimitives (tcu::Surface& result, const std::vector<tcu::Vec4>& vertexData, const std::vector<tcu::Vec4>& coloDrata, glw::GLenum primitiveType); 347 void BaseRenderingCase::drawPrimitives (tcu::Surface& result, const std::vector<tcu::Vec4>& vertexData, glw::GLenum primitiveType) 350 const std::vector<tcu::Vec4> colorData(vertexData.size(), tcu::Vec4(1.0f, 1.0f, 1.0f, 1.0f)) [all...] |
es3fFboStencilbufferTests.cpp | 42 using tcu::Vec4; 102 glClearBufferfv(GL_COLOR, 0, Vec4(0.0f).getPtr()); 111 flatShader.setColor(*getCurrentContext(), flatShaderID, Vec4(1.0f, 0.0f, 0.0f, 1.0f)); 114 gradShader.setGradient(*getCurrentContext(), gradShaderID, Vec4(0.0f), Vec4(1.0f)); 123 flatShader.setColor(*getCurrentContext(), flatShaderID, Vec4(0.0f, 1.0f, 0.0f, 1.0)); 129 flatShader.setColor(*getCurrentContext(), flatShaderID, Vec4(0.0f, 0.0f, 1.0f, 1.0f)); 132 readPixels(dst, 0, 0, m_size.x(), m_size.y(), glu::mapGLInternalFormat(colorFormat), Vec4(1.0f), Vec4(0.0f)); 199 glClearBufferfv(GL_COLOR, 0, Vec4(0.0f).getPtr()) [all...] |
es3fDitheringTests.cpp | 49 using tcu::Vec4; 98 DitheringCase (tcu::TestContext& testCtx, glu::RenderContext& renderCtx, const char* name, const char* description, bool isEnabled, PatternType patternType, const tcu::Vec4& color); 108 bool checkColor (const tcu::Vec4& inputClr, const tcu::RGBA& renderedClr, bool logErrors) const; 110 bool drawAndCheckGradient (bool isVerticallyIncreasing, const tcu::Vec4& highColor) const; 111 bool drawAndCheckUnicoloredQuad (const tcu::Vec4& color) const; 117 const tcu::Vec4 m_color; 138 DitheringCase::DitheringCase (tcu::TestContext& testCtx, glu::RenderContext& renderCtx, const char* const name, const char* const description, const bool ditheringEnabled, const PatternType patternType, const Vec4& color) 168 bool DitheringCase::checkColor (const Vec4& inputClr, const tcu::RGBA& renderedClr, const bool logErrors) const 239 bool DitheringCase::drawAndCheckGradient (const bool isVerticallyIncreasing, const Vec4& highColor) const 249 const Vec4 quadClr0 (0.0f, 0.0f, 0.0f, 0.0f) [all...] |
es3fFboTestUtil.cpp | 50 using tcu::Vec4; 69 static tcu::Vector<T, 4> castVectorSaturate (const tcu::Vec4& in) 85 "in highp vec4 a_position;\n" 93 "uniform highp vec4 u_color;\n" 103 void FlatColorShader::setColor (sglr::Context& context, deUint32 program, const tcu::Vec4& color) 123 const tcu::Vec4 color (m_uniforms[0].value.f4); 161 "in highp vec4 a_position;\n" 162 "in highp vec4 a_coord;\n" 163 "out highp vec4 v_coord;\n" 172 "in highp vec4 v_coord;\n [all...] |
es3fShaderBuiltinVarTests.cpp | 217 "in highp vec4 a_position;\n" 224 "in mediump vec4 v_color;\n" 225 "layout(location = 0) out mediump vec4 o_color;\n\n" 235 src << "in highp vec4 a_position;\n" 236 << "out mediump vec4 v_color;\n"; 238 src << "layout(location = 0) out mediump vec4 o_color;\n"; 241 src << "\t" << (m_isVertexCase ? "v_color" : "o_color") << " = vec4(gl_DepthRange.near, gl_DepthRange.far, gl_DepthRange.diff*0.5 + 0.5, 1.0);\n"; 307 "in highp vec4 a_position;\n" 315 "layout(location = 0) out mediump vec4 o_color;\n" 318 " o_color = vec4(gl_FragCoord.xyz*u_scale, 1.0);\n [all...] |
es3fFboDepthbufferTests.cpp | 42 using tcu::Vec4; 79 gradShader.setGradient(*getCurrentContext(), gradShaderID, tcu::Vec4(0.0f), tcu::Vec4(1.0f)); 118 tcu::fillWithGrid(data.getAccess(), 8, Vec4(0.2f, 0.7f, 0.1f, 1.0f), Vec4(0.7f, 0.1f, 0.5f, 0.8f)); 132 readPixels(dst, 0, 0, m_width, m_height, glu::mapGLInternalFormat(colorFormat), Vec4(1.0f), Vec4(0.0f)); 169 const tcu::Vec4 red (1.0, 0.0, 0.0, 1.0); 170 const tcu::Vec4 green (0.0, 1.0, 0.0, 1.0); 218 readPixels(dst, 0, 0, m_width, m_height, glu::mapGLInternalFormat(colorFormat), Vec4(1.0f), Vec4(0.0f)) [all...] |
/external/deqp/modules/glshared/ |
glsShaderRenderCase.cpp | 65 static const tcu::Vec4 DEFAULT_CLEAR_COLOR = tcu::Vec4(0.125f, 0.25f, 0.5f, 1.0f); 67 inline RGBA toRGBA (const Vec4& a) 75 inline tcu::Vec4 toVec (const RGBA& c) 77 return tcu::Vec4(c.getRed() / 255.0f, 153 QuadGrid (int gridSize, int screenWidth, int screenHeight, const Vec4& constCoords, const vector<Mat4>& userAttribTransforms, const vector<TextureBinding>& textures); 159 const Vec4& getConstCoords (void) const { return m_constCoords; } 163 const Vec4* getPositions (void) const { return &m_positions[0]; } 165 const Vec4* getCoords (void) const { return &m_coords[0]; } 166 const Vec4* getUnitCoords (void) const { return &m_unitCoords[0]; [all...] |
glsFragmentOpUtil.hpp | 52 tcu::Vec4 color[4]; 53 tcu::Vec4 color1[4]; 92 tcu::Vec4 color[4]; 93 tcu::Vec4 color1[4];
|
glsSamplerObjectTest.cpp | 132 "\tgl_Position = vec4(u_posScale * a_position, 0.0, 1.0);\n" 144 "\tgl_Position = vec4(u_posScale * a_position.xy, 0.0, 1.0);\n" 150 "${VTX_IN} ${HIGHP} vec4 a_position;\n" 156 "\tgl_Position = vec4(u_posScale * a_position.xy, 0.0, 1.0);\n" 215 params["FRAG_HDR"] = "#version 300 es\nlayout(location = 0) out mediump vec4 o_color;\n"; 227 params["FRAG_HDR"] = "#version 330\nlayout(location = 0) out mediump vec4 o_color;\n"; 385 tcu::fillWithComponentGradients(refTexture.getLevel(0), tcu::Vec4(0.0f, 0.0f, 0.0f, 0.0f), tcu::Vec4(1.0f, 1.0f, 1.0f, 1.0f)); 411 tcu::fillWithComponentGradients(refTexture.getLevel(0), tcu::Vec4(0.0f, 0.0f, 0.0f, 0.0f), tcu::Vec4(1.0f, 1.0f, 1.0f, 1.0f)) [all...] |
/external/deqp/modules/gles2/functional/ |
es2fShaderTextureFunctionTests.cpp | 79 tcu::Vec4 minCoord; 80 tcu::Vec4 maxCoord; 100 const tcu::Vec4& minCoord_, 101 const tcu::Vec4& maxCoord_, 164 tcu::Vec4 scale; 165 tcu::Vec4 bias; 179 using tcu::Vec4; 192 inline Vec4 texture2D (const gls::ShaderEvalContext& c, float s, float t, float lod) { return c.textures[0].tex2D->sample(c.textures[0].sampler, s, t, lod); } 193 inline Vec4 textureCube (const gls::ShaderEvalContext& c, float s, float t, float r, float lod) { return c.textures[0].texCube->sample(c.textures[0].sampler, s, t, r, lod); } 235 void setupUniforms (int programID, const tcu::Vec4& constCoords) [all...] |
es2fDitheringTests.cpp | 49 using tcu::Vec4; 98 DitheringCase (tcu::TestContext& testCtx, glu::RenderContext& renderCtx, const char* name, const char* description, bool isEnabled, PatternType patternType, const tcu::Vec4& color); 108 bool checkColor (const tcu::Vec4& inputClr, const tcu::RGBA& renderedClr, bool logErrors) const; 110 bool drawAndCheckGradient (bool isVerticallyIncreasing, const tcu::Vec4& highColor) const; 111 bool drawAndCheckUnicoloredQuad (const tcu::Vec4& color) const; 117 const tcu::Vec4 m_color; 138 DitheringCase::DitheringCase (tcu::TestContext& testCtx, glu::RenderContext& renderCtx, const char* const name, const char* const description, const bool ditheringEnabled, const PatternType patternType, const Vec4& color) 168 bool DitheringCase::checkColor (const Vec4& inputClr, const tcu::RGBA& renderedClr, const bool logErrors) const 239 bool DitheringCase::drawAndCheckGradient (const bool isVerticallyIncreasing, const Vec4& highColor) const 249 const Vec4 quadClr0 (0.0f, 0.0f, 0.0f, 0.0f) [all...] |
es2fDepthRangeTests.cpp | 53 using tcu::Vec4; 59 "attribute highp vec4 a_position;\n" 66 "uniform mediump vec4 u_color;\n" 96 inline float triQuadInterpolate (const float x, const float y, const tcu::Vec4& quad) 115 DepthRangeCompareCase (Context& context, const char* name, const char* desc, const tcu::Vec4& depthCoord, const float zNear, const float zFar, const deUint32 compareFunc); 121 const tcu::Vec4 m_depthCoord; 127 DepthRangeCompareCase::DepthRangeCompareCase (Context& context, const char* name, const char* desc, const tcu::Vec4& depthCoord, const float zNear, const float zFar, const deUint32 compareFunc) 266 DepthRangeWriteCase (Context& context, const char* name, const char* desc, const tcu::Vec4& depthCoord, const float zNear, const float zFar); 272 const tcu::Vec4& m_depthCoord; 277 DepthRangeWriteCase::DepthRangeWriteCase (Context& context, const char* name, const char* desc, const tcu::Vec4& depthCoord, const float zNear, const float zFar [all...] |
es2fTextureSizeTests.cpp | 105 tcu::fillWithComponentGradients(m_texture->getRefTexture().getLevel(levelNdx), tcu::Vec4(-1.0f, -1.0f, -1.0f, 2.0f), tcu::Vec4(1.0f, 1.0f, 1.0f, 0.0f)); 222 static const tcu::Vec4 gradients[tcu::CUBEFACE_LAST][2] = 224 { tcu::Vec4(-1.0f, -1.0f, -1.0f, 2.0f), tcu::Vec4(1.0f, 1.0f, 1.0f, 0.0f) }, // negative x 225 { tcu::Vec4( 0.0f, -1.0f, -1.0f, 2.0f), tcu::Vec4(1.0f, 1.0f, 1.0f, 0.0f) }, // positive x 226 { tcu::Vec4(-1.0f, 0.0f, -1.0f, 2.0f), tcu::Vec4(1.0f, 1.0f, 1.0f, 0.0f) }, // negative y 227 { tcu::Vec4(-1.0f, -1.0f, 0.0f, 2.0f), tcu::Vec4(1.0f, 1.0f, 1.0f, 0.0f) }, // positive [all...] |
/external/deqp/modules/gles31/functional/ |
es31fVertexAttributeBindingTests.cpp | 48 "in mediump vec4 v_color;\n" 49 "layout(location = 0) out mediump vec4 fragColor;\n" 56 "in highp vec4 a_position;\n" 57 "in highp vec4 a_color;\n" 58 "out highp vec4 v_color;\n" 66 "in highp vec4 a_position;\n" 67 "in highp vec4 a_offset;\n" 68 "in highp vec4 a_color;\n" 69 "out highp vec4 v_color;\n" 450 const tcu::Vec4 colorA (0.0f, 1.0f, 0.0f, 1.0f) [all...] |
es31fMultisampleTests.cpp | 46 using tcu::Vec4; 172 void renderTriangle (const Vec3& p0, const Vec3& p1, const Vec3& p2, const Vec4& c0, const Vec4& c1, const Vec4& c2) const; 173 void renderTriangle (const Vec3& p0, const Vec3& p1, const Vec3& p2, const Vec4& color) const; 174 void renderTriangle (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec4& c0, const Vec4& c1, const Vec4& c2) const; 175 void renderTriangle (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec4& color) const; 176 void renderQuad (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec2& p3, const Vec4& c0, const Vec4& c1, const Vec4& c2, const Vec4& c3) const [all...] |
/external/deqp/framework/referencerenderer/ |
rrFragmentOperations.hpp | 83 void clearMultisampleColorBuffer (const tcu::PixelBufferAccess& dst, const tcu::Vec4& value, const WindowRectangle& rect); 119 tcu::Vec4 clampedBlendSrcColor; 120 tcu::Vec4 clampedBlendSrc1Color; 121 tcu::Vec4 clampedBlendDstColor; 140 void executeBlendFactorComputeRGB (const tcu::Vec4& blendColor, const BlendState& blendRGBState); 141 void executeBlendFactorComputeA (const tcu::Vec4& blendColor, const BlendState& blendAState); 147 void executeMaskedColorWrite (int fragNdxOffset, int numSamplesPerFragment, const Fragment* inputFragments, const tcu::Vec4& colorMaskFactor, const tcu::Vec4& colorMaskNegationFactor, bool isSRGB, const tcu::PixelBufferAccess& colorBuffer);
|
rrVertexAttrib.hpp | 151 void readVertexAttrib (tcu::Vec4& dst, const VertexAttrib& vertexAttrib, const int instanceNdx, const int vertexNdx); 157 inline tcu::Vec4 readVertexAttribFloat (const VertexAttrib& vertexAttrib, const int instanceNdx, const int vertexNdx) 159 tcu::Vec4 v;
|
rrPrimitivePacket.hpp | 58 void EmitVertex (const tcu::Vec4& position, float pointSize, const GenericVec4* varyings, int primitiveID);
|
rrVertexPacket.hpp | 60 tcu::Vec4 position; //!< Transformed position - must be written always.
|
/external/deqp/framework/common/ |
tcuVectorType.hpp | 40 typedef Vector<float, 4> Vec4;
|
tcuTexCompareVerifier.hpp | 59 bool isGatherOffsetsCompareResultValid (const Texture2DView& texture, const Sampler& sampler, const TexComparePrecision& prec, const Vec2& coord, const IVec2 (&offsets)[4], float cmpReference, const Vec4& result); 60 bool isGatherOffsetsCompareResultValid (const Texture2DArrayView& texture, const Sampler& sampler, const TexComparePrecision& prec, const Vec3& coord, const IVec2 (&offsets)[4], float cmpReference, const Vec4& result); 62 bool isGatherCompareResultValid (const TextureCubeView& texture, const Sampler& sampler, const TexComparePrecision& prec, const Vec3& coord, float cmpReference, const Vec4& result);
|
tcuImageCompare.cpp | 44 void computeScaleAndBias (const ConstPixelBufferAccess& reference, const ConstPixelBufferAccess& result, tcu::Vec4& scale, tcu::Vec4& bias) 46 Vec4 minVal; 47 Vec4 maxVal; 51 Vec4 refMin; 52 Vec4 refMax; 60 Vec4 resMin; 61 Vec4 resMax; 222 Vec4 pixelBias (0.0f, 0.0f, 0.0f, 0.0f); 223 Vec4 pixelScale (1.0f, 1.0f, 1.0f, 1.0f) [all...] |
/external/deqp/modules/egl/ |
teglGLES2RenderUtil.hpp | 42 void clear (const glw::Functions& gl, int x, int y, int width, int height, const tcu::Vec4& color);
|
/development/ndk/sources/android/ndk_helper/ |
vecmath.h | 36 class Vec4; 51 friend class Vec4; 255 friend class Vec4; 292 Vec3( const Vec4& vec ); 490 class Vec4 500 Vec4() 505 Vec4( const float fX, const float fY, const float fZ, const float fW ) 513 Vec4( const Vec4& vec ) 521 Vec4( const Vec3& vec, const float fW [all...] |