/external/deqp/external/vulkancts/modules/vulkan/geometry/ |
vktGeometryBasicGeometryShaderTests.cpp | 189 m_vertexPosData[ndx] = tcu::Vec4(-1.0f, ((float)ndx) / (float)m_primitiveCount * 2.0f - 1.0f, 0.0f, 1.0f); 190 m_vertexAttrData[ndx] = (ndx % 2 == 0) ? tcu::Vec4(1, 1, 1, 1) : tcu::Vec4(1, 0, 0, 1); 267 const tcu::Vec4 data[4] = 269 tcu::Vec4(255, 0, 0, 0), 270 tcu::Vec4(0, 255, 0, 0), 271 tcu::Vec4(0, 0, 255, 0), 272 tcu::Vec4(0, 0, 0, 255) 411 m_vertexPosData[0] = tcu::Vec4( 0.5f, 0.0f, 0.0f, 1.0f); 412 m_vertexPosData[1] = tcu::Vec4( 0.0f, 0.5f, 0.0f, 1.0f) [all...] |
vktGeometryInstancedRenderingTests.cpp | 55 using tcu::Vec4; 102 sizeof(Vec4), // deUint32 stride; 145 const Vec4& clearColor, 148 const std::vector<Vec4>& perInstanceAttribute) 204 std::vector<Vec4> generatePerInstancePosition (const int numInstances) 207 std::vector<Vec4> positions; 216 positions.push_back(Vec4(x, y, 0.0f, 1.0f)); 245 void generateReferenceImage(tcu::PixelBufferAccess image, const Vec4& clearColor, const std::vector<Vec4>& perInstancePosition, const int numInvocations) 249 for (std::vector<Vec4>::const_iterator iterPosition = perInstancePosition.begin(); iterPosition != perInstancePosition.e (…) [all...] |
/external/deqp/modules/gles2/performance/ |
es2pShaderControlStatementTests.cpp | 43 using tcu::Vec4; 194 vtx << "attribute highp vec4 a_position;\n"; // Position attribute. 195 vtx << "attribute mediump vec4 a_value0;\n"; // Input for workload calculations of "true" branch. 196 vtx << "attribute mediump vec4 a_value1;\n"; // Input for workload calculations of "false" branch. 207 vtx << "varying mediump vec4 v_color;\n"; 208 frag << "varying mediump vec4 v_color;\n"; 212 vtx << "varying mediump vec4 v_value0;\n"; 213 vtx << "varying mediump vec4 v_value1;\n"; 214 frag << "varying mediump vec4 v_value0;\n"; 215 frag << "varying mediump vec4 v_value1;\n" [all...] |
es2pBlendTests.cpp | 40 using tcu::Vec4; 89 "attribute highp vec4 a_position;\n" 90 "attribute mediump vec4 a_color;\n" 91 "varying mediump vec4 v_color;\n" 98 "varying mediump vec4 v_color;\n" 104 m_attributes.push_back(AttribSpec("a_color", Vec4(0.0f, 0.5f, 0.5f, 1.0f), 105 Vec4(0.5f, 1.0f, 0.0f, 0.5f), 106 Vec4(0.5f, 0.0f, 1.0f, 0.5f), 107 Vec4(1.0f, 0.5f, 0.5f, 0.0f)));
|
/external/deqp/modules/gles3/performance/ |
es3pShaderControlStatementTests.cpp | 43 using tcu::Vec4; 195 vtx << "in highp vec4 a_position;\n"; // Position attribute. 196 vtx << "in mediump vec4 a_value0;\n"; // Input for workload calculations of "true" branch. 197 vtx << "in mediump vec4 a_value1;\n"; // Input for workload calculations of "false" branch. 200 frag << "layout(location = 0) out mediump vec4 o_color;\n"; 211 vtx << "out mediump vec4 v_color;\n"; 212 frag << "in mediump vec4 v_color;\n"; 216 vtx << "out mediump vec4 v_value0;\n"; 217 vtx << "out mediump vec4 v_value1;\n"; 218 frag << "in mediump vec4 v_value0;\n" [all...] |
/external/deqp/framework/opengl/ |
gluTextureTestUtil.cpp | 153 inline tcu::Vec4 linearInterpolate (float t, const tcu::Vec4& a, const tcu::Vec4& b) 158 inline float bilinearInterpolate (float x, float y, const tcu::Vec4& quad) 344 static inline tcu::Vec4 execSample (const tcu::Texture1DView& src, const ReferenceParams& params, float s, float lod) 347 return tcu::Vec4(src.sampleCompare(params.sampler, params.ref, s, lod), 0.0, 0.0, 1.0f); 352 static inline tcu::Vec4 execSample (const tcu::Texture2DView& src, const ReferenceParams& params, float s, float t, float lod) 355 return tcu::Vec4(src.sampleCompare(params.sampler, params.ref, s, t, lod), 0.0, 0.0, 1.0f); 360 static inline tcu::Vec4 execSample (const tcu::TextureCubeView& src, const ReferenceParams& params, float s, float t, float r, float lod) 363 return tcu::Vec4(src.sampleCompare(params.sampler, params.ref, s, t, r, lod), 0.0, 0.0, 1.0f) [all...] |
/external/deqp/framework/common/ |
tcuTextureUtil.cpp | 69 Vec4 sRGBToLinear (const Vec4& cs) 71 return Vec4(sRGBChannelToLinear(cs[0]), 77 Vec4 sRGB8ToLinear (const UVec4& cs) 79 return Vec4(sRGB8ChannelToLinear(cs[0]), 85 Vec4 sRGBA8ToLinear (const UVec4& cs) 87 return Vec4(sRGB8ChannelToLinear(cs[0]), 94 Vec4 linearToSRGB (const Vec4& cl) 96 return Vec4(linearChannelToSRGB(cl[0]) [all...] |
tcuAstcUtil.hpp | 62 Vec4 getBlockTestTypeColorScale (BlockTestType testType); 63 Vec4 getBlockTestTypeColorBias (BlockTestType testType);
|
tcuTexLookupVerifier.cpp | 70 const Vec4 p = access.getPixel(i, j, k); 77 static inline bool isColorValid (const LookupPrecision& prec, const Vec4& ref, const Vec4& result) 79 const Vec4 diff = abs(ref - result); 95 Vec4 p00; //!< (0, 0) 96 Vec4 p01; //!< (1, 0) 97 Vec4 p10; //!< (0, 1) 98 Vec4 p11; //!< (1, 1) 111 Vec4 p0; //!< 0 112 Vec4 p1; //!< [all...] |
/external/deqp/external/openglcts/modules/common/ |
glcShaderRenderCase.hpp | 187 tcu::Vec4 coords; 188 tcu::Vec4 unitCoords; 189 tcu::Vec4 constCoords; 191 tcu::Vec4 in[MAX_USER_ATTRIBS]; 195 tcu::Vec4 color; 203 tcu::Vec4 texture2D(int unitNdx, const tcu::Vec2& coords); 271 virtual void setupUniforms(deUint32 programID, const tcu::Vec4& constCoords); 295 tcu::Vec4 m_clearColor;
|
/external/deqp/external/vulkancts/modules/vulkan/api/ |
vktApiBufferComputeInstance.hpp | 46 const tcu::Vec4& color1, 47 const tcu::Vec4& color2,
|
/external/deqp/framework/randomshaders/ |
rsgSamplers.hpp | 49 inline tcu::Vec4 sample (float s, float t, float lod) const 74 inline tcu::Vec4 sample (float s, float t, float r, float lod) const
|
/external/deqp/modules/egl/ |
teglGLES1RenderUtil.cpp | 41 void clear (int x, int y, int width, int height, const tcu::Vec4& color) 63 void clear (int x, int y, int width, int height, const tcu::Vec4& color)
|
teglVGRenderUtil.cpp | 41 void clear (int x, int y, int width, int height, const tcu::Vec4& color) 61 void clear (int x, int y, int width, int height, const tcu::Vec4& color)
|
/external/deqp/modules/gles31/functional/ |
es31fFboTestUtil.cpp | 50 using tcu::Vec4; 69 static tcu::Vector<T, 4> castVectorSaturate (const tcu::Vec4& in) 90 src << "uniform " << precision << " vec4 u_texScale" << samplerNdx << ";\n"; 91 src << "uniform " << precision << " vec4 u_texBias" << samplerNdx << ";\n"; 95 src << "uniform " << precision << " vec4 u_outScale0;\n" 96 << "uniform " << precision << " vec4 u_outBias0;\n"; 101 << " " << precision << " vec4 out0 = vec4(0.0);\n"; 105 src << "\tout0 += vec4(" 127 "in highp vec4 a_position;\n [all...] |
es31fGeometryShaderTests.cpp | 72 "in highp vec4 a_position;\n" 73 "in highp vec4 a_color;\n" 74 "out highp vec4 v_geom_FragColor;\n" 82 "layout(location = 0) out mediump vec4 fragColor;\n" 83 "in mediump vec4 v_frag_FragColor;\n" 88 static const char* const s_expandShaderSourceGeometryBody = "in highp vec4 v_geom_FragColor[];\n" 89 "out highp vec4 v_frag_FragColor;\n" 93 " const highp vec4 offset0 = vec4(-0.07, -0.01, 0.0, 0.0);\n" 94 " const highp vec4 offset1 = vec4( 0.03, -0.03, 0.0, 0.0);\n [all...] |
es31fTextureSpecificationTests.cpp | 61 using tcu::Vec4; 342 Vec4 gMin = randomVector<4>(rnd, m_texFormatInfo.valueMin, m_texFormatInfo.valueMax); 343 Vec4 gMax = randomVector<4>(rnd, m_texFormatInfo.valueMin, m_texFormatInfo.valueMax); 382 Vec4 gMin = randomVector<4>(rnd, m_texFormatInfo.valueMin, m_texFormatInfo.valueMax); 383 Vec4 gMax = randomVector<4>(rnd, m_texFormatInfo.valueMin, m_texFormatInfo.valueMax); 444 Vec4 cScale = m_texFormatInfo.valueMax-m_texFormatInfo.valueMin; 445 Vec4 cBias = m_texFormatInfo.valueMin; 446 Vec4 colorA = Vec4(1.0f, 0.0f, 0.0f, 1.0f)*cScale + cBias; 447 Vec4 colorB = Vec4(0.0f, 1.0f, 0.0f, 1.0f)*cScale + cBias [all...] |
/external/deqp/modules/glshared/ |
glsShaderRenderCase.hpp | 154 tcu::Vec4 coords; 155 tcu::Vec4 unitCoords; 156 tcu::Vec4 constCoords; 158 tcu::Vec4 in[MAX_USER_ATTRIBS]; 162 tcu::Vec4 color; 167 tcu::Vec4 texture2D (int unitNdx, const tcu::Vec2& coords); 219 virtual void setupUniforms (int programID, const tcu::Vec4& constCoords); 249 tcu::Vec4 m_clearColor;
|
/external/deqp/external/vulkancts/modules/vulkan/draw/ |
vktDrawIndexedTest.cpp | 116 m_data.push_back(VertexElementData(tcu::Vec4(-1.0f, 1.0f, 1.0f, 1.0f), tcu::RGBA::blue().toVec(), -1)); 121 m_data.push_back(VertexElementData(tcu::Vec4( -0.3f, 0.3f, 1.0f, 1.0f), tcu::RGBA::blue().toVec(), vertexIndex++)); 122 m_data.push_back(VertexElementData(tcu::Vec4( -1.0f, 1.0f, 1.0f, 1.0f), tcu::RGBA::blue().toVec(), vertexIndex++)); 123 m_data.push_back(VertexElementData(tcu::Vec4( -0.3f, -0.3f, 1.0f, 1.0f), tcu::RGBA::blue().toVec(), vertexIndex++)); 124 m_data.push_back(VertexElementData(tcu::Vec4( 1.0f, -1.0f, 1.0f, 1.0f), tcu::RGBA::blue().toVec(), vertexIndex++)); 125 m_data.push_back(VertexElementData(tcu::Vec4( -0.3f, -0.3f, 1.0f, 1.0f), tcu::RGBA::blue().toVec(), vertexIndex++)); 126 m_data.push_back(VertexElementData(tcu::Vec4( 0.3f, 0.3f, 1.0f, 1.0f), tcu::RGBA::blue().toVec(), vertexIndex++)); 127 m_data.push_back(VertexElementData(tcu::Vec4( 0.3f, -0.3f, 1.0f, 1.0f), tcu::RGBA::blue().toVec(), vertexIndex++)); 128 m_data.push_back(VertexElementData(tcu::Vec4( 0.3f, 0.3f, 1.0f, 1.0f), tcu::RGBA::blue().toVec(), vertexIndex++)); 130 m_data.push_back(VertexElementData(tcu::Vec4( -1.0f, 1.0f, 1.0f, 1.0f), tcu::RGBA::blue().toVec(), -1)) [all...] |
vktDrawIndirectTest.cpp | 148 m_data.push_back(VertexElementData(tcu::Vec4(-1.0f, 1.0f, 1.0f, 1.0f), tcu::RGBA::blue().toVec(), -1)); 153 m_data.push_back(VertexElementData(tcu::Vec4( 1.0f, -1.0f, 1.0f, 1.0f), tcu::RGBA::blue().toVec(), -1)); 154 m_data.push_back(VertexElementData(tcu::Vec4(-1.0f, 1.0f, 1.0f, 1.0f), tcu::RGBA::blue().toVec(), -1)); 159 m_data.push_back(VertexElementData(tcu::Vec4(-0.3f, -0.3f, 1.0f, 1.0f), tcu::RGBA::blue().toVec(), refVertexIndex++)); 160 m_data.push_back(VertexElementData(tcu::Vec4(-0.3f, 0.3f, 1.0f, 1.0f), tcu::RGBA::blue().toVec(), refVertexIndex++)); 161 m_data.push_back(VertexElementData(tcu::Vec4( 0.3f, -0.3f, 1.0f, 1.0f), tcu::RGBA::blue().toVec(), refVertexIndex++)); 162 m_data.push_back(VertexElementData(tcu::Vec4( 0.3f, -0.3f, 1.0f, 1.0f), tcu::RGBA::blue().toVec(), refVertexIndex++)); 163 m_data.push_back(VertexElementData(tcu::Vec4( 0.3f, 0.3f, 1.0f, 1.0f), tcu::RGBA::blue().toVec(), refVertexIndex++)); 164 m_data.push_back(VertexElementData(tcu::Vec4(-0.3f, 0.3f, 1.0f, 1.0f), tcu::RGBA::blue().toVec(), refVertexIndex++)); 167 m_data.push_back(VertexElementData(tcu::Vec4(-0.3f, 0.0f, 1.0f, 1.0f), tcu::RGBA::blue().toVec(), refVertexIndex++)) [all...] |
/external/deqp/external/vulkancts/modules/vulkan/dynamic_state/ |
vktDynamicStateVPTests.cpp | 58 m_data.push_back(PositionColorVertex(tcu::Vec4(-0.5f, 0.5f, 1.0f, 1.0f), tcu::RGBA::green().toVec())); 59 m_data.push_back(PositionColorVertex(tcu::Vec4(0.5f, 0.5f, 1.0f, 1.0f), tcu::RGBA::green().toVec())); 60 m_data.push_back(PositionColorVertex(tcu::Vec4(-0.5f, -0.5f, 1.0f, 1.0f), tcu::RGBA::green().toVec())); 61 m_data.push_back(PositionColorVertex(tcu::Vec4(0.5f, -0.5f, 1.0f, 1.0f), tcu::RGBA::green().toVec())); 149 tcu::clear(referenceFrame.getLevel(0), tcu::Vec4(0.0f, 0.0f, 0.0f, 1.0f)); 160 referenceFrame.getLevel(0).setPixel(tcu::Vec4(0.0f, 1.0f, 0.0f, 1.0f), x, y); 196 tcu::clear(referenceFrame.getLevel(0), tcu::Vec4(0.0f, 0.0f, 0.0f, 1.0f)); 207 referenceFrame.getLevel(0).setPixel(tcu::Vec4(0.0f, 1.0f, 0.0f, 1.0f), x, y); 239 m_data.push_back(PositionColorVertex(tcu::Vec4(-1.0f, 1.0f, (float)i / 3.0f, 1.0f), tcu::RGBA::green().toVec())); 240 m_data.push_back(PositionColorVertex(tcu::Vec4(1.0f, 1.0f, (float)i / 3.0f, 1.0f), tcu::RGBA::green().toVec())) [all...] |
vktDynamicStateRSTests.cpp | 197 (deUint32)sizeof(tcu::Vec4) * 2, 367 m_data.push_back(PositionColorVertex(tcu::Vec4(-1.0f, 1.0f, 0.5f, 1.0f), tcu::RGBA::blue().toVec())); 368 m_data.push_back(PositionColorVertex(tcu::Vec4(1.0f, 1.0f, 0.5f, 1.0f), tcu::RGBA::blue().toVec())); 369 m_data.push_back(PositionColorVertex(tcu::Vec4(-1.0f, -1.0f, 0.5f, 1.0f), tcu::RGBA::blue().toVec())); 370 m_data.push_back(PositionColorVertex(tcu::Vec4(1.0f, -1.0f, 0.5f, 1.0f), tcu::RGBA::blue().toVec())); 372 m_data.push_back(PositionColorVertex(tcu::Vec4(-0.5f, 0.5f, 1.0f, 1.0f), tcu::RGBA::green().toVec())); 373 m_data.push_back(PositionColorVertex(tcu::Vec4(0.5f, 0.5f, 1.0f, 1.0f), tcu::RGBA::green().toVec())); 374 m_data.push_back(PositionColorVertex(tcu::Vec4(-0.5f, -0.5f, 1.0f, 1.0f), tcu::RGBA::green().toVec())); 375 m_data.push_back(PositionColorVertex(tcu::Vec4(0.5f, -0.5f, 1.0f, 1.0f), tcu::RGBA::green().toVec())); 377 m_data.push_back(PositionColorVertex(tcu::Vec4(-1.0f, 1.0f, 0.5f, 1.0f), tcu::RGBA::red().toVec())) [all...] |
/external/deqp/external/vulkancts/modules/vulkan/spirv_assembly/ |
vktSpvAsmUboMatrixPaddingTests.cpp | 40 using tcu::Vec4; 128 vector<tcu::Vec4> inputData; 133 inputData.push_back(tcu::Vec4(rnd.getFloat(), rnd.getFloat(), rnd.getFloat(), rnd.getFloat())); 139 // Shader is expected to pass the input data by treating the input vec4 as mat2x2 142 group->addChild(new SpvAsmComputeShaderCase(testCtx, "mat2x2", "Tests mat2x2 member in UBO struct without padding (treated as vec4).", spec)); 159 vector<tcu::Vec4> inputData(numDataPoints); 161 inputData[numIdx] = tcu::Vec4(rnd.getFloat(), rnd.getFloat(), rnd.getFloat(), rnd.getFloat()); 164 // Shader is expected to pass the input data by treating the input vec4 as mat2x2
|
/external/deqp/framework/referencerenderer/ |
rrVertexAttrib.cpp | 72 inline void readUnormOrder (tcu::Vec4& dst, const int size, const void* ptr) 86 inline void readSnormClamp (tcu::Vec4& dst, const int size, const void* ptr) 101 inline void readSnormScale (tcu::Vec4& dst, const int size, const void* ptr) 115 inline void readHalf (tcu::Vec4& dst, const int size, const void* ptr) 126 inline void readFixed (tcu::Vec4& dst, const int size, const void* ptr) 137 inline void readDouble (tcu::Vec4& dst, const int size, const void* ptr) 179 inline void readUnorm2101010RevOrder (tcu::Vec4& dst, const int size, const void* ptr) 194 inline void readSnorm2101010RevClampOrder (tcu::Vec4& dst, const int size, const void* ptr) 210 inline void readSnorm2101010RevScaleOrder (tcu::Vec4& dst, const int size, const void* ptr) 234 inline void readUnorm (tcu::Vec4& dst, const int size, const void* ptr [all...] |
/external/deqp/modules/gles2/functional/ |
es2fMultisampleTests.cpp | 52 using tcu::Vec4; 164 errorImg.setPixel(Vec4(1.0f, 0.0f, 0.0f, 1.0f), x, y); 187 void renderTriangle (const Vec3& p0, const Vec3& p1, const Vec3& p2, const Vec4& c0, const Vec4& c1, const Vec4& c2) const; 188 void renderTriangle (const Vec3& p0, const Vec3& p1, const Vec3& p2, const Vec4& color) const; 189 void renderTriangle (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec4& c0, const Vec4& c1, const Vec4& c2) const; 190 void renderTriangle (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec4& color) const [all...] |