/external/deqp/external/vulkancts/modules/vulkan/geometry/ |
vktGeometryLayeredRenderingTests.cpp | 58 using tcu::Vec4; 96 tcu::Vec4 scaleColor(const tcu::Vec4& color, float factor) 98 return tcu::Vec4(color[0] * factor, 347 inline bool compareColors (const Vec4& colorA, const Vec4& colorB, const Vec4& threshold) 354 bool verifyImageSingleColoredRow (tcu::TestLog& log, const tcu::ConstPixelBufferAccess image, const float rowWidthRatio, const tcu::Vec4& barColor) 358 const Vec4 black (0.0f, 0.0f, 0.0f, 1.0f); 359 const Vec4 green (0.0f, 1.0f, 0.0f, 1.0f) [all...] |
/external/deqp/external/vulkancts/modules/vulkan/conditional_rendering/ |
vktConditionalDrawTests.cpp | 130 m_data.push_back(Draw::VertexElementData(tcu::Vec4( minX, maxY, 0.5f, 1.0f), tcu::RGBA::blue().toVec(), 0)); 131 m_data.push_back(Draw::VertexElementData(tcu::Vec4( minX, minY, 0.5f, 1.0f), tcu::RGBA::blue().toVec(), 0)); 132 m_data.push_back(Draw::VertexElementData(tcu::Vec4( maxX, maxY, 0.5f, 1.0f), tcu::RGBA::blue().toVec(), 0)); 134 m_data.push_back(Draw::VertexElementData(tcu::Vec4( minX, minY, 0.5f, 1.0f), tcu::RGBA::blue().toVec(), 0)); 135 m_data.push_back(Draw::VertexElementData(tcu::Vec4( maxX, maxY, 0.5f, 1.0f), tcu::RGBA::blue().toVec(), 0)); 136 m_data.push_back(Draw::VertexElementData(tcu::Vec4( maxX, minY, 0.5f, 1.0f), tcu::RGBA::blue().toVec(), 0)); 139 m_data.push_back(Draw::VertexElementData(tcu::Vec4( -1.0f, 1.0f, 0.0f, 1.0f), tcu::RGBA::red().toVec(), 0)); 140 m_data.push_back(Draw::VertexElementData(tcu::Vec4( -1.0f, -1.0f, 0.0f, 1.0f), tcu::RGBA::red().toVec(), 0)); 141 m_data.push_back(Draw::VertexElementData(tcu::Vec4( 1.0f, 1.0f, 0.0f, 1.0f), tcu::RGBA::red().toVec(), 0)); 143 m_data.push_back(Draw::VertexElementData(tcu::Vec4( -1.0f, -1.0f, 0.0f, 1.0f), tcu::RGBA::red().toVec(), 0)) [all...] |
/external/deqp/external/vulkancts/modules/vulkan/draw/ |
vktDrawNegativeViewportHeightTests.cpp | 51 using tcu::Vec4; 99 std::vector<Vec4> vertexData; 102 vertexData.push_back(Vec4(-0.8f, -0.6f, 0.0f, 1.0f)); // 0-----2 103 vertexData.push_back(Vec4(-0.8f, 0.6f, 0.0f, 1.0f)); // | / 104 vertexData.push_back(Vec4(-0.2f, -0.6f, 0.0f, 1.0f)); // 1|/ 107 vertexData.push_back(Vec4( 0.2f, -0.6f, 0.0f, 1.0f)); // 0-----1 108 vertexData.push_back(Vec4( 0.8f, -0.6f, 0.0f, 1.0f)); // \ | 109 vertexData.push_back(Vec4( 0.8f, 0.6f, 0.0f, 1.0f)); // \|2 111 const VkDeviceSize dataSize = vertexData.size() * sizeof(Vec4); 185 sizeof(Vec4), // uint32_t stride [all...] |
vktBasicDrawTests.cpp | 221 tcu::Vec4 color = rr::readVertexAttribFloat(inputs[1], 247 tcu::Vec4 color = rr::readVarying<float>(packet, context, 0, fragNdx); 283 void generateRefImage (const tcu::PixelBufferAccess& access, const std::vector<tcu::Vec4>& vertices, const std::vector<tcu::Vec4>& colors) const; 387 (deUint32)sizeof(tcu::Vec4) * 2, 479 vk::beginRenderPass(m_vk, *m_cmdBuffer, *m_renderPass, *m_framebuffer, renderArea, tcu::Vec4(0.0f, 0.0f, 0.0f, 1.0f)); 482 void DrawTestInstanceBase::generateRefImage (const tcu::PixelBufferAccess& access, const std::vector<tcu::Vec4>& vertices, const std::vector<tcu::Vec4>& colors) const 494 rr::VertexAttrib(rr::VERTEXATTRIBTYPE_FLOAT, 4, sizeof(tcu::Vec4), 0, &vertices[0]), 495 rr::VertexAttrib(rr::VERTEXATTRIBTYPE_FLOAT, 4, sizeof(tcu::Vec4), 0, &colors[0] [all...] |
vktDrawInvertedDepthRangesTests.cpp | 51 using tcu::Vec4; 104 std::vector<Vec4> vertexData; 106 vertexData.push_back(Vec4(-0.8f, -0.8f, -0.2f, 1.0f)); // 0-----2 107 vertexData.push_back(Vec4(-0.8f, 0.8f, 0.0f, 1.0f)); // | / 108 vertexData.push_back(Vec4( 0.8f, -0.8f, 1.2f, 1.0f)); // 1|/ 110 const VkDeviceSize dataSize = vertexData.size() * sizeof(Vec4); 184 sizeof(Vec4), // uint32_t stride; 305 const Vec4 black (0.0f, 0.0f, 0.0f, 1.0f); 324 access.setPixel(Vec4(depthFinal, 0.5f, 0.5f, 1.0f), x, y); 373 << "layout(location = 0) in vec4 in_position;\n [all...] |
/external/deqp/external/vulkancts/modules/vulkan/shaderrender/ |
vktShaderRender.cpp | 65 static const tcu::Vec4 DEFAULT_CLEAR_COLOR = tcu::Vec4(0.125f, 0.25f, 0.5f, 1.0f); 146 const tcu::Vec4& constCoords, 154 const tcu::Vec4& getConstCoords (void) const { return m_constCoords; } 158 const tcu::Vec4* getPositions (void) const { return &m_positions[0]; } 160 const tcu::Vec4* getCoords (void) const { return &m_coords[0]; } 161 const tcu::Vec4* getUnitCoords (void) const { return &m_unitCoords[0]; } 163 const tcu::Vec4* getUserAttrib (int attribNdx) const { return &m_userAttribs[attribNdx][0]; } 166 tcu::Vec4 getCoords (float sx, float sy) const; 167 tcu::Vec4 getUnitCoords (float sx, float sy) const [all...] |
vktShaderRender.hpp | 206 tcu::Vec4 coords; 207 tcu::Vec4 unitCoords; 208 tcu::Vec4 constCoords; 210 tcu::Vec4 in[MAX_USER_ATTRIBS]; 214 tcu::Vec4 color; 219 tcu::Vec4 texture2D (int unitNdx, const tcu::Vec2& coords); 254 typedef void (*UniformSetupFunc) (ShaderRenderCaseInstance& instance, const tcu::Vec4& constCoords); 262 virtual void setup (ShaderRenderCaseInstance& instance, const tcu::Vec4& constCoords) const; 392 // Vec4 488 static const tcu::Vec4 getDefaultConstCoords (void) { return tcu::Vec4(0.125f, 0.25f, 0.5f, 1.0f); [all...] |
/external/deqp/framework/common/ |
tcuTestLog.cpp | 83 tcu::Vec4 depthScale; 84 tcu::Vec4 depthBias; 85 tcu::Vec4 stencilScale; 86 tcu::Vec4 stencilBias; 91 m_scale = tcu::Vec4(depthScale.x(), stencilScale.x(), 0.0f, 0.0f); 92 m_bias = tcu::Vec4(depthBias.x(), stencilBias.x(), 0.0f, 0.0f); 96 LogImage::LogImage (const std::string& name, const std::string& description, const ConstPixelBufferAccess& access, const Vec4& scale, const Vec4& bias, qpImageCompressionMode compression) 236 void TestLog::writeImage (const char* name, const char* description, const ConstPixelBufferAccess& access, const Vec4& pixelScale, const Vec4& pixelBias, qpImageCompressionMode compressionMode [all...] |
tcuTexture.cpp | 51 inline Vec4 readRGBA8888Float (const deUint8* ptr) { return Vec4(ptr[0]/255.0f, ptr[1]/255.0f, ptr[2]/255.0f, ptr[3]/255.0f); } 52 inline Vec4 readRGB888Float (const deUint8* ptr) { return Vec4(ptr[0]/255.0f, ptr[1]/255.0f, ptr[2]/255.0f, 1.0f); } 73 inline void writeRGBA8888Float (deUint8* ptr, const Vec4& val) 81 inline void writeRGB888Float (deUint8* ptr, const Vec4& val) 512 tcu::Vec4 unpackRGB999E5 (deUint32 color) 527 return tcu::Vec4(r, g, b, 1.0f); [all...] |
/external/deqp/modules/gles2/functional/ |
es2fTextureSizeTests.cpp | 106 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)); 228 static const tcu::Vec4 gradients[tcu::CUBEFACE_LAST][2] = 230 { tcu::Vec4(-1.0f, -1.0f, -1.0f, 2.0f), tcu::Vec4(1.0f, 1.0f, 1.0f, 0.0f) }, // negative x 231 { tcu::Vec4( 0.0f, -1.0f, -1.0f, 2.0f), tcu::Vec4(1.0f, 1.0f, 1.0f, 0.0f) }, // positive x 232 { tcu::Vec4(-1.0f, 0.0f, -1.0f, 2.0f), tcu::Vec4(1.0f, 1.0f, 1.0f, 0.0f) }, // negative y 233 { tcu::Vec4(-1.0f, -1.0f, 0.0f, 2.0f), tcu::Vec4(1.0f, 1.0f, 1.0f, 0.0f) }, // positive [all...] |
es2fDepthTests.cpp | 54 void setColor (sglr::Context& ctx, deUint32 programID, const tcu::Vec4& color); 68 << sglr::pdec::VertexSource("attribute highp vec4 a_position;\n" 73 << sglr::pdec::FragmentSource("uniform mediump vec4 u_color;\n" 82 void DepthShader::setColor (sglr::Context& ctx, deUint32 programID, const tcu::Vec4& color) 96 const tcu::Vec4 color(u_color.value.f4); 123 tcu::Vec4 clearColor = tcu::Vec4(0.125f, 0.25f, 0.5f, 1.0f); 207 tcu::Vec4 red (1.0f, 0.0f, 0.0f, 1.0); 208 tcu::Vec4 green (0.0f, 1.0f, 0.0f, 1.0f);
|
/external/deqp/modules/gles3/functional/ |
es3fTextureSizeTests.cpp | 107 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)); 229 static const tcu::Vec4 gradients[tcu::CUBEFACE_LAST][2] = 231 { tcu::Vec4(-1.0f, -1.0f, -1.0f, 2.0f), tcu::Vec4(1.0f, 1.0f, 1.0f, 0.0f) }, // negative x 232 { tcu::Vec4( 0.0f, -1.0f, -1.0f, 2.0f), tcu::Vec4(1.0f, 1.0f, 1.0f, 0.0f) }, // positive x 233 { tcu::Vec4(-1.0f, 0.0f, -1.0f, 2.0f), tcu::Vec4(1.0f, 1.0f, 1.0f, 0.0f) }, // negative y 234 { tcu::Vec4(-1.0f, -1.0f, 0.0f, 2.0f), tcu::Vec4(1.0f, 1.0f, 1.0f, 0.0f) }, // positive [all...] |
es3fDepthTests.cpp | 54 void setColor (sglr::Context& ctx, deUint32 programID, const tcu::Vec4& color); 69 "in highp vec4 a_position;\n" 75 "uniform highp vec4 u_color;\n" 76 "layout(location = 0) out mediump vec4 o_color;\n" 85 void DepthShader::setColor (sglr::Context& ctx, deUint32 programID, const tcu::Vec4& color) 99 const tcu::Vec4 color(u_color.value.f4); 126 tcu::Vec4 clearColor = tcu::Vec4(0.125f, 0.25f, 0.5f, 1.0f); 210 tcu::Vec4 red (1.0f, 0.0f, 0.0f, 1.0); 211 tcu::Vec4 green (0.0f, 1.0f, 0.0f, 1.0f) [all...] |
/external/deqp/modules/egl/ |
teglNativeColorMappingTests.cpp | 94 "\tgl_Position = vec4(a_pos, 0.0, 1.0);\n" 98 "uniform mediump vec4 u_color;\n" 212 void clear (const glw::Functions& gl, const tcu::Vec4& color) 219 void render (const glw::Functions& gl, deUint32 program, const tcu::Vec4& color) 248 bool validate (TestLog& log, const Library& egl, EGLDisplay display, EGLConfig config, const tcu::TextureLevel& result, const tcu::Vec4& color) 323 bool testNativeWindow (TestLog& log, eglu::NativeDisplay& nativeDisplay, eglu::NativeWindow& nativeWindow, EGLDisplay display, EGLContext context, EGLConfig config, const glw::Functions& gl, bool renderColor, int waitFrames, size_t colorCount, const tcu::Vec4* colors) 366 bool testNativePixmap (TestLog& log, eglu::NativeDisplay& nativeDisplay, eglu::NativePixmap& nativePixmap, EGLDisplay display, EGLContext context, EGLConfig config, const glw::Functions& gl, bool renderColor, size_t colorCount, const tcu::Vec4* colors) 407 bool testNativePixmapCopy (TestLog& log, const Library& egl, eglu::NativePixmap& nativePixmap, EGLDisplay display, EGLContext context, EGLConfig config, const glw::Functions& gl, bool renderColor, size_t colorCount, const tcu::Vec4* colors) 453 const tcu::Vec4 colors[] = 455 tcu::Vec4(0.0f, 0.0f, 0.0f, 1.0f) [all...] |
/external/deqp/modules/internal/ |
ditFrameworkTests.cpp | 604 c.vtx[0] = tcu::Vec4(-1.0f, -1.0f, 0.5f, 1.0f); 605 c.vtx[1] = tcu::Vec4(-1.0f, +1.0f, 0.5f, 1.0f); 606 c.vtx[2] = tcu::Vec4(+1.0f, -1.0f, 0.5f, 1.0f); 607 c.varying = tcu::Vec4(0.0f, 1.0f, 8.0f, -8.0f); 614 c.vtx[0] = tcu::Vec4(-1.0f, +1.0f, 0.5f, 1.0f); 615 c.vtx[1] = tcu::Vec4(+1.0f, -1.0f, 0.5f, 1.0f); 616 c.vtx[2] = tcu::Vec4(+1.0f, +1.0f, 0.5f, 1.0f); 617 c.varying = tcu::Vec4(0.0f, 1.0f, 8.0f, -8.0f); 623 c.vtx[0] = tcu::Vec4(-1.0f, -1.0f, 0.5f, 1.0f); 624 c.vtx[1] = tcu::Vec4(-1.0f, +1.0f, 0.5f, 1.0f) [all...] |
/external/deqp/modules/gles2/scripts/ |
gen-conversions.py | 50 # + note: vec4(mat2) valid 61 # * legal to chain: vec4.rgba.xyzw.stpq 75 # - base type and size conversion at same time: vec4(bool), int(vec3) allowed? 234 inVec4 = [Vec4(0.0, 0.5, 0.75, 0.825), Vec4(1.0, 1.25, 1.125, 1.75), 235 Vec4(-0.5, -2.25, -4.875, 9.0), Vec4(-32.0, 64.0, -51.0, 24.0), 236 Vec4(-0.75, -1.0/31.0, 1.0/19.0, 1.0/4.0)] 242 inBVec4 = [Vec4(True, False, False, True), Vec4(False, False, False, True), Vec4(False, True, False, False), Vec4(True, True, True, True), Vec4(Fa (…) [all...] |
/external/deqp/modules/gles31/functional/ |
es31fSRGBDecodeTests.cpp | 118 tcu::Vec4 getColorReferenceLinear (void) 120 return tcu::Vec4(0.2f, 0.3f, 0.4f, 1.0f); 123 tcu::Vec4 getColorReferenceSRGB (void) 125 return tcu::linearToSRGB(tcu::Vec4(0.2f, 0.3f, 0.4f, 1.0f)); 128 tcu::Vec4 getColorGreenPass (void) 130 return tcu::Vec4(0.0f, 1.0f, 0.0f, 1.0f); 148 "mediump vec4 srgbToLinearCheck(in mediump vec4 texelSRGBA, in mediump vec4 texelLinear) \n" 151 " mediump vec4 texelSRGBAConverted; \n [all...] |
/external/deqp/modules/gles3/accuracy/ |
es3aTextureFilteringTests.cpp | 137 tcu::Vec4 cBias = fmtInfo.valueMin; 138 tcu::Vec4 cScale = fmtInfo.valueMax-fmtInfo.valueMin; 143 tcu::Vec4 gMin = tcu::Vec4(-0.5f, -0.5f, -0.5f, 2.0f)*cScale + cBias; 144 tcu::Vec4 gMax = tcu::Vec4( 1.0f, 1.0f, 1.0f, 0.0f)*cScale + cBias; 394 tcu::Vec4 cBias = fmtInfo.valueMin; 395 tcu::Vec4 cScale = fmtInfo.valueMax-fmtInfo.valueMin; 398 static const tcu::Vec4 gradients[tcu::CUBEFACE_LAST][2] = 400 { tcu::Vec4(-1.0f, -1.0f, -1.0f, 2.0f), tcu::Vec4(1.0f, 1.0f, 1.0f, 0.0f) }, // negative [all...] |
/external/deqp/external/openglcts/modules/gles31/ |
es31cDrawIndirectTests.cpp | 176 return api::glslVer() + NL "in vec4 i_vertex;" NL "void main()" NL "{" NL " gl_Position = i_vertex;" NL "}"; 181 return api::glslVer() + NL "in vec4 i_vertex;" NL "void main()" NL "{" NL " gl_Position = i_vertex;" NL 188 return api::glslVer() + NL "precision highp float; " NL "out vec4 outColor;" NL "void main() {" NL 189 " outColor = vec4(0.1,0.2,0.3,1.0);" NL "}"; 198 typedef std::vector<tcu::Vec4> CColorArray; 493 tcu::Vec4 epsilon = tcu::Vec4( 523 bool ColorVerify(T color, T colorExpected, tcu::Vec4 epsilon) 607 output.push_back(tcu::Vec4(offsetX, offsetY, 0.0f, 1.0f)); 628 output.push_back(tcu::Vec4(-1.0f, offsetY, 0.0f, 1.0f)) [all...] |
/external/deqp/framework/referencerenderer/ |
rrFragmentOperations.cpp | 31 using tcu::Vec4; 56 static inline Vec4 unpremultiply (const Vec4& v) 59 return Vec4(v.x()/v.w(), v.y()/v.w(), v.z()/v.w(), v.w()); 63 return Vec4(0.0f, 0.0f, 0.0f, 0.0f); 67 void clearMultisampleColorBuffer (const tcu::PixelBufferAccess& dst, const Vec4& v, const WindowRectangle& r) { tcu::clear(tcu::getSubregion(dst, 0, r.left, r.bottom, dst.getWidth(), r.width, r.height), v); } 359 void FragmentProcessor::executeBlendFactorComputeRGB (const Vec4& blendColor, const BlendState& blendRGBState) 366 const Vec4& src = m_sampleRegister[regSampleNdx].clampedBlendSrcColor; \ 367 const Vec4& src1 = m_sampleRegister[regSampleNdx].clampedBlendSrc1Color; \ 368 const Vec4& dst = m_sampleRegister[regSampleNdx].clampedBlendDstColor; [all...] |
/external/deqp/external/vulkancts/modules/vulkan/pipeline/ |
vktPipelineBlendTests.cpp | 105 const static tcu::Vec4 s_blendConst; 130 static tcu::Vec4 getFormatThreshold (const tcu::TextureFormat& format); 246 const tcu::Vec4 BlendTest::s_blendConst = tcu::Vec4(0.1f, 0.2f, 0.3f, 0.4f); 274 "layout(location = 0) in highp vec4 position;\n" 275 "layout(location = 1) in highp vec4 color;\n" 276 "layout(location = 0) out highp vec4 vtxColor;\n" 284 "layout(location = 0) in highp vec4 vtxColor;\n" 285 "layout(location = 0) out highp vec4 fragColor;\n" 594 tcu::Vec4 BlendTestInstance::getFormatThreshold (const tcu::TextureFormat& format [all...] |
vktPipelineReferenceRenderer.cpp | 145 tcu::Vec4 swizzle (const tcu::Vec4& color, const tcu::UVec4& swizzle) 157 return tcu::Vec4(channelValues[swizzle.x()], 197 tcu::Vec4 clearColor = defaultClearColor(m_colorFormat); 248 void ReferenceRenderer::colorClear(const tcu::Vec4& color) 260 std::vector<tcu::Vec4> positions; 261 std::vector<tcu::Vec4> colors; 292 std::vector<tcu::Vec4> positions; 293 std::vector<tcu::Vec4> texCoords;
|
/external/deqp/modules/gles2/accuracy/ |
es2aTextureFilteringTests.cpp | 147 tcu::Vec4 cBias = fmtInfo.valueMin; 148 tcu::Vec4 cScale = fmtInfo.valueMax-fmtInfo.valueMin; 153 tcu::Vec4 gMin = tcu::Vec4(-0.5f, -0.5f, -0.5f, 2.0f)*cScale + cBias; 154 tcu::Vec4 gMax = tcu::Vec4( 1.0f, 1.0f, 1.0f, 0.0f)*cScale + cBias; 408 tcu::Vec4 cBias = fmtInfo.valueMin; 409 tcu::Vec4 cScale = fmtInfo.valueMax-fmtInfo.valueMin; 412 static const tcu::Vec4 gradients[tcu::CUBEFACE_LAST][2] = 414 { tcu::Vec4(-1.0f, -1.0f, -1.0f, 2.0f), tcu::Vec4(1.0f, 1.0f, 1.0f, 0.0f) }, // negative [all...] |
/external/deqp/external/openglcts/modules/glesext/geometry_shader/ |
esextcGeometryShaderRendering.cpp | [all...] |
/external/deqp/modules/gles31/stress/ |
es31sVertexAttributeBindingTests.cpp | 49 "in highp vec4 a_position;\n" 56 "layout(location = 0) out mediump vec4 fragColor;\n" 59 " fragColor = vec4(1.0, 1.0, 1.0, 1.0);\n" 63 "in mediump vec4 v_color;\n" 64 "layout(location = 0) out mediump vec4 fragColor;\n" 444 const tcu::Vec4 colorA (0.0f, 1.0f, 0.0f, 1.0f); 445 const tcu::Vec4 colorB (0.5f, 1.0f, 0.0f, 1.0f); 450 const tcu::Vec4& color = ((x + y) % 2 == 0) ? (colorA) : (colorB); 451 const tcu::Vec4 positions[6] = 453 tcu::Vec4(float(x+0) / float(GRID_SIZE) * 2.0f - 1.0f, float(y+0) / float(GRID_SIZE) * 2.0f - 1.0f, 0.0f, 1. (…) [all...] |