/third_party/vk-gl-cts/framework/referencerenderer/ |
D | rrPrimitiveAssembler.hpp | 80 …static void exec (Iterator outputIterator, VertexPacket* const* vertices, size_t numVertices, rr::… in exec() 85 *(outputIterator++) = Triangle(vertices[ndx], vertices[ndx+1], vertices[ndx+2], provokingOffset); in exec() 88 static size_t getPrimitiveCount (size_t vertices) in getPrimitiveCount() 90 return vertices / 3; in getPrimitiveCount() 97 …static void exec (Iterator outputIterator, VertexPacket* const* vertices, size_t numVertices, rr::… in exec() 104 VertexPacket* vert0 = vertices[0]; in exec() 105 VertexPacket* vert1 = vertices[1]; in exec() 114 …*(outputIterator++) = Triangle(vert0, vert1, vertices[ndx], (provokingConvention == rr::PROVOKINGV… in exec() 115 vert0 = vertices[ndx]; in exec() 124 …*(outputIterator++) = Triangle(vert0, vert1, vertices[ndx], (provokingConvention == rr::PROVOKINGV… in exec() [all …]
|
D | rrRenderer.cpp | 275 TriangleVertex vertices[3]; member 440 void clipTriangleToPlane (std::vector<TriangleVertex>& clippedEdges, const TriangleVertex* vertices… in clipTriangleToPlane() argument 442 const bool v0Clipped = !plane.pointInClipVolume(vertices[0].position); in clipTriangleToPlane() 443 const bool v1Clipped = !plane.pointInClipVolume(vertices[1].position); in clipTriangleToPlane() 444 const bool v2Clipped = !plane.pointInClipVolume(vertices[2].position); in clipTriangleToPlane() 450 clippedEdges.insert(clippedEdges.begin(), vertices, vertices + 3); in clipTriangleToPlane() 455 …if (v0Clipped) clipTriangleOneVertex(clippedEdges, plane, vertices[0], vertices[1], vertices[2]); in clipTriangleToPlane() 456 … if (v1Clipped) clipTriangleOneVertex(clippedEdges, plane, vertices[1], vertices[2], vertices[0]); in clipTriangleToPlane() 457 else clipTriangleOneVertex(clippedEdges, plane, vertices[2], vertices[0], vertices[1]); in clipTriangleToPlane() 462 …if (!v0Clipped) clipTriangleTwoVertices(clippedEdges, plane, vertices[0], vertices[1], vertices[… in clipTriangleToPlane() [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/rasterization/ |
D | vktRasterizationProvokingVertexTests.cpp | 479 std::vector<tcu::Vec4> vertices; in iterate() local 485 vertices.push_back(tcu::Vec4(-1.0f,-0.5f, 0.0f, 1.0f)); vertices.push_back(red); // line 0 in iterate() 486 vertices.push_back(tcu::Vec4( 1.0f,-0.5f, 0.0f, 1.0f)); vertices.push_back(blue); in iterate() 487 vertices.push_back(tcu::Vec4(-1.0f, 0.5f, 0.0f, 1.0f)); vertices.push_back(red); // line 1 in iterate() 488 vertices.push_back(tcu::Vec4( 1.0f, 0.5f, 0.0f, 1.0f)); vertices.push_back(blue); in iterate() 490 …vertices.push_back(tcu::Vec4(-0.5f,-1.0f, 0.0f, 1.0f)); vertices.push_back(blue); // line 1 reverse in iterate() 491 vertices.push_back(tcu::Vec4(-0.5f, 1.0f, 0.0f, 1.0f)); vertices.push_back(red); in iterate() 492 …vertices.push_back(tcu::Vec4( 0.5f,-1.0f, 0.0f, 1.0f)); vertices.push_back(blue); // line 0 reverse in iterate() 493 vertices.push_back(tcu::Vec4( 0.5f, 1.0f, 0.0f, 1.0f)); vertices.push_back(red); in iterate() 497 vertices.push_back(tcu::Vec4(-1.0f,-0.5f, 0.0f, 1.0f)); vertices.push_back(red); // line strip in iterate() [all …]
|
/third_party/mesa3d/src/gallium/auxiliary/util/ |
D | u_prim.h | 231 u_decomposed_prims_for_vertices(enum pipe_prim_type primitive, int vertices) in u_decomposed_prims_for_vertices() argument 235 return vertices; in u_decomposed_prims_for_vertices() 237 return vertices / 2; in u_decomposed_prims_for_vertices() 239 return (vertices >= 2) ? vertices : 0; in u_decomposed_prims_for_vertices() 241 return (vertices >= 2) ? vertices - 1 : 0; in u_decomposed_prims_for_vertices() 243 return vertices / 3; in u_decomposed_prims_for_vertices() 245 return (vertices >= 3) ? vertices - 2 : 0; in u_decomposed_prims_for_vertices() 247 return (vertices >= 3) ? vertices - 2 : 0; in u_decomposed_prims_for_vertices() 249 return vertices / 4; in u_decomposed_prims_for_vertices() 251 return (vertices >= 4) ? vertices - 3 : 0; in u_decomposed_prims_for_vertices() [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/clipping/ |
D | vktClippingTests.cpp | 124 std::vector<Vec4> vertices; in genVertices() local 131 vertices.push_back(offset + Vec4(0.0f, 0.0f, slope/2.0f + z, w)); in genVertices() 132 vertices.push_back(offset + Vec4( -hp, -hp, z, w)); in genVertices() 133 vertices.push_back(offset + Vec4( hp, -hp, slope + z, w)); in genVertices() 134 vertices.push_back(offset + Vec4( -hp, hp, z, w)); in genVertices() 135 vertices.push_back(offset + Vec4( hp, hp, slope + z, w)); in genVertices() 139 vertices.push_back(offset + Vec4(-p, -p, z, w)); in genVertices() 140 vertices.push_back(offset + Vec4( p, p, slope + z, w)); // line 0 in genVertices() 141 vertices.push_back(offset + Vec4( p, p, slope + z, w)); in genVertices() 142 vertices.push_back(offset + Vec4( p, -p, slope + z, w)); // line 1 in genVertices() [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/ |
D | vktPipelineVertexUtil.cpp | 897 std::vector<Vertex4RGBA> vertices; in createOverlappingQuads() local 944 vertices.push_back(lowerLeftVertex); in createOverlappingQuads() 945 vertices.push_back(lowerRightVertex); in createOverlappingQuads() 946 vertices.push_back(upperLeftVertex); in createOverlappingQuads() 949 vertices.push_back(lowerRightVertex); in createOverlappingQuads() 950 vertices.push_back(upperLeftVertex); in createOverlappingQuads() 951 vertices.push_back(upperRightVertex); in createOverlappingQuads() 954 return vertices; in createOverlappingQuads() 962 std::vector<Vertex4RGBARGBA> vertices; in createOverlappingQuadsDualSource() local 1015 vertices.push_back(lowerLeftVertex); in createOverlappingQuadsDualSource() [all …]
|
D | vktPipelineInputAssemblyTests.cpp | 392 std::vector<Vertex4RGBA> vertices; in createBufferData() local 443 vertices.push_back(vertex); in createBufferData() 459 vertices.push_back(vertex); in createBufferData() 476 vertices.push_back(vertex); in createBufferData() 480 vertices.push_back(vertex); in createBufferData() 491 vertices.push_back(vertex); in createBufferData() 508 vertices.push_back(vertex); in createBufferData() 527 vertices.push_back(vertex); in createBufferData() 539 vertices.push_back(vertex); in createBufferData() 559 vertices.push_back(vertex); in createBufferData() [all …]
|
/third_party/vk-gl-cts/modules/gles3/functional/ |
D | es3fNegativeVertexArrayApiTests.cpp | 350 GLfloat vertices[1] = { 0 }; in init() 353 glDrawElements(-1, 1, GL_UNSIGNED_BYTE, vertices); in init() 358 glDrawElements(GL_POINTS, 1, -1, vertices); in init() 360 glDrawElements(GL_POINTS, 1, GL_FLOAT, vertices); in init() 365 glDrawElements(GL_POINTS, -1, GL_UNSIGNED_BYTE, vertices); in init() 373 glDrawElements(GL_POINTS, 1, GL_UNSIGNED_BYTE, vertices); in init() 397 glDrawElements (GL_POINTS, 1, GL_UNSIGNED_BYTE, vertices); in init() 401 glDrawElements (GL_POINTS, 1, GL_UNSIGNED_BYTE, vertices); in init() 417 GLfloat vertices[1] = { 0 }; in init() 420 glDrawElements(-1, 1, GL_UNSIGNED_BYTE, vertices); in init() [all …]
|
/third_party/skia/samplecode/ |
D | SampleDegenerateQuads.cpp | 429 float vertices[56]; // 2 quads, with x, y, coverage, and geometry domain (7 floats x 8 vert) in getTessellatedPoints() local 430 skgpu::v1::QuadPerEdgeAA::Tessellator tessellator(kSpec, (char*) vertices); in getTessellatedPoints() 436 inset[0] = {vertices[0], vertices[1]}; // TL in getTessellatedPoints() 437 insetCoverage[0] = vertices[2]; in getTessellatedPoints() 438 inset[3] = {vertices[7], vertices[8]}; // BL in getTessellatedPoints() 439 insetCoverage[3] = vertices[9]; in getTessellatedPoints() 440 inset[1] = {vertices[14], vertices[15]}; // TR in getTessellatedPoints() 441 insetCoverage[1] = vertices[16]; in getTessellatedPoints() 442 inset[2] = {vertices[21], vertices[22]}; // BR in getTessellatedPoints() 443 insetCoverage[2] = vertices[23]; in getTessellatedPoints() [all …]
|
/third_party/skia/third_party/externals/angle2/samples/torus_lighting/ |
D | torus.h | 41 std::vector<GLfloat> vertices; in GenerateTorus() local 58 vertices.push_back(x); in GenerateTorus() 59 vertices.push_back(y); in GenerateTorus() 60 vertices.push_back(z); in GenerateTorus() 71 vertices.push_back(nx); in GenerateTorus() 72 vertices.push_back(ny); in GenerateTorus() 73 vertices.push_back(nz); in GenerateTorus() 79 glBufferData(GL_ARRAY_BUFFER, vertices.size() * sizeof(GLfloat), vertices.data(), in GenerateTorus()
|
/third_party/vk-gl-cts/modules/gles3/stress/ |
D | es3sOcclusionQueryTests.cpp | 151 std::vector<float> vertices; in iterate() local 172 vertices.resize(4*NUM_GENERATED_VERTICES); in iterate() 176 vertices[4*i ] = m_rnd.getFloat(-1.0f, 1.0f); in iterate() 177 vertices[4*i + 1] = m_rnd.getFloat(-1.0f, 1.0f); in iterate() 178 vertices[4*i + 2] = m_rnd.getFloat(0.0f, 1.0f); in iterate() 179 vertices[4*i + 3] = 1.0f; in iterate() 189 occluderVertices[4*i ] = vertices[4*vtxNdx]; in iterate() 190 occluderVertices[4*i + 1] = vertices[4*vtxNdx + 1]; in iterate() 191 occluderVertices[4*i + 2] = vertices[4*vtxNdx + 2]; in iterate() 192 occluderVertices[4*i + 3] = vertices[4*vtxNdx + 3]; in iterate() [all …]
|
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/ |
D | ViewportTest.cpp | 256 std::vector<Vector3> vertices = {{-1.0f, -1.0f, 0.0f}, {1.0f, 1.0f, 0.0f}}; in TEST_P() local 263 glBufferData(GL_ARRAY_BUFFER, sizeof(vertices[0]) * vertices.size(), vertices.data(), in TEST_P() 274 glDrawArrays(GL_LINES, 0, static_cast<GLsizei>(vertices.size())); in TEST_P() 297 std::vector<Vector3> vertices = {{-1.0f, -1.0f, 0.0f}, {1.0f, 1.0f, 0.0f}}; in TEST_P() local 304 glBufferData(GL_ARRAY_BUFFER, sizeof(vertices[0]) * vertices.size(), vertices.data(), in TEST_P() 313 glDrawArrays(GL_LINES, 0, static_cast<GLsizei>(vertices.size())); in TEST_P() 331 std::vector<Vector3> vertices = {{-1.0f, -1.0f, 0.0f}, {1.0f, 1.0f, 0.0f}}; in TEST_P() local 338 glBufferData(GL_ARRAY_BUFFER, sizeof(vertices[0]) * vertices.size(), vertices.data(), in TEST_P() 377 glDrawArrays(GL_LINES, 0, static_cast<GLsizei>(vertices.size())); in TEST_P()
|
D | DrawElementsTest.cpp | 91 const auto &vertices = GetQuadVertices(); in TEST_P() local 95 glBufferData(GL_ARRAY_BUFFER, sizeof(vertices[0]) * vertices.size(), vertices.data(), in TEST_P() 116 const auto &vertices = GetIndexedQuadVertices(); in TEST_P() local 131 glBufferData(GL_ARRAY_BUFFER, sizeof(vertices[0]) * vertices.size(), vertices.data(), in TEST_P() 285 const auto &vertices = GetIndexedQuadVertices(); in TEST_P() local 289 glBufferData(GL_ARRAY_BUFFER, sizeof(vertices[0]) * vertices.size(), vertices.data(), in TEST_P() 476 const auto &vertices = GetQuadVertices(); in TEST_P() local 480 glBufferData(GL_ARRAY_BUFFER, sizeof(vertices[0]) * vertices.size(), vertices.data(), in TEST_P()
|
D | ClientArraysTest.cpp | 69 const auto &vertices = GetQuadVertices(); in TEST_P() local 70 glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 4, vertices.data()); in TEST_P() 92 const auto &vertices = GetQuadVertices(); in TEST_P() local 96 glBufferData(GL_ARRAY_BUFFER, sizeof(vertices[0]) * vertices.size(), vertices.data(), in TEST_P()
|
D | ShaderNonConstGlobalInitializerTest.cpp | 26 std::array<Vector4, 3> vertices; in draw() local 27 vertices[0] = {-1.0, -1.0, 0.0, 1.0}; in draw() 28 vertices[1] = {1.0, -1.0, 0.0, 1.0}; in draw() 29 vertices[2] = {0.0, 1.0, 0.0, 2.0}; in draw() 33 glVertexAttribPointer(positionLocation, 4, GL_FLOAT, GL_FALSE, 0, vertices.data()); in draw()
|
D | SimpleOperationTest.cpp | 133 auto vertices = GetQuadVertices(); in TEST_P() local 140 glBufferData(GL_ARRAY_BUFFER, sizeof(vertices[0]) * vertices.size(), vertices.data(), in TEST_P() 149 glDrawArrays(GL_TRIANGLES, 0, static_cast<GLsizei>(vertices.size())); in TEST_P() 150 glDrawArrays(GL_TRIANGLES, 0, static_cast<GLsizei>(vertices.size())); in TEST_P() 359 std::vector<Vector3> vertices = {{-1.0f, -1.0f, 0.0f}, {1.0f, 1.0f, 0.0f}}; in TEST_P() local 366 glBufferData(GL_ARRAY_BUFFER, sizeof(vertices[0]) * vertices.size(), vertices.data(), in TEST_P() 372 glDrawArrays(GL_LINES, 0, static_cast<GLsizei>(vertices.size())); in TEST_P() 396 std::vector<Vector3> vertices(kOffset); in TEST_P() local 399 vertices.emplace_back(vector1); in TEST_P() 400 vertices.emplace_back(vector2); in TEST_P() [all …]
|
/third_party/vk-gl-cts/modules/gles2/functional/ |
D | es2fNegativeVertexArrayApiTests.cpp | 211 GLfloat vertices[1] = { 0.0f }; in init() 214 glDrawElements(-1, 1, GL_UNSIGNED_BYTE, vertices); in init() 219 glDrawElements(GL_POINTS, 1, -1, vertices); in init() 224 glDrawElements(GL_POINTS, -1, GL_UNSIGNED_BYTE, vertices); in init() 233 glDrawElements(GL_POINTS, 1, GL_UNSIGNED_BYTE, vertices); in init() 244 GLfloat vertices[1] = { 0.0f }; in init() 247 glDrawElements(-1, 1, GL_UNSIGNED_BYTE, vertices); in init() 252 glDrawElements(GL_POINTS, 1, -1, vertices); in init() 257 glDrawElements(GL_POINTS, -1, GL_UNSIGNED_BYTE, vertices); in init() 266 glDrawElements(GL_POINTS, 1, GL_UNSIGNED_BYTE, vertices); in init() [all …]
|
/third_party/skia/third_party/externals/swiftshader/tests/VulkanWrapper/ |
D | DrawTester.cpp | 48 device.freeMemory(vertices.memory, nullptr); in ~DrawTester() 49 device.destroyBuffer(vertices.buffer, nullptr); in ~DrawTester() 292 pipelineCreateInfo.pVertexInputState = &vertices.inputState; in createGraphicsPipeline() 395 if(vertices.numVertices > 0) in createCommandBuffers() 399 commandBuffers[i].bindVertexBuffers(0, 1, &vertices.buffer, &offset); in createCommandBuffers() 400 commandBuffers[i].draw(vertices.numVertices, 1, 0, 0); in createCommandBuffers() 410 assert(!vertices.buffer); // For now, only support adding once in addVertexBuffer() 415 vertices.buffer = device.createBuffer(vertexBufferInfo); in addVertexBuffer() 418 vk::MemoryRequirements memoryRequirements = device.getBufferMemoryRequirements(vertices.buffer); in addVertexBuffer() 421 vertices.memory = device.allocateMemory(memoryAllocateInfo); in addVertexBuffer() [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/image/ |
D | vktImageSampleDrawnCubeFaceTests.cpp | 173 vector<Vec4> vertices; in genFullQuadVertices() local 174 vertices.push_back(Vec4(-1.0f, -1.0f, 0.0f, 1.0f)); in genFullQuadVertices() 175 vertices.push_back(Vec4( 1.0f, -1.0f, 0.0f, 1.0f)); in genFullQuadVertices() 176 vertices.push_back(Vec4(-1.0f, 1.0f, 0.0f, 1.0f)); in genFullQuadVertices() 177 vertices.push_back(Vec4(1.0f, -1.0f, 0.0f, 1.0f)); in genFullQuadVertices() 178 vertices.push_back(Vec4(1.0f, 1.0f, 0.0f, 1.0f)); in genFullQuadVertices() 179 vertices.push_back(Vec4(-1.0f, 1.0f, 0.0f, 1.0f)); in genFullQuadVertices() 181 return vertices; in genFullQuadVertices() 186 Vertex(Vec4 vertices_, Vec2 uv_) : vertices(vertices_), uv(uv_) {} in Vertex() 187 Vec4 vertices; member [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/synchronization/ |
D | vktSynchronizationImageLayoutTransitionTests.cpp | 125 vector<Vec4> vertices; in genFullQuadVertices() local 126 vertices.push_back(Vec4(-1.0f, -1.0f, 0.0f, 1.0f)); in genFullQuadVertices() 127 vertices.push_back(Vec4( 1.0f, -1.0f, 0.0f, 1.0f)); in genFullQuadVertices() 128 vertices.push_back(Vec4(-1.0f, 1.0f, 0.0f, 1.0f)); in genFullQuadVertices() 129 vertices.push_back(Vec4( 1.0f, -1.0f, 0.0f, 1.0f)); in genFullQuadVertices() 130 vertices.push_back(Vec4( 1.0f, 1.0f, 0.0f, 1.0f)); in genFullQuadVertices() 131 vertices.push_back(Vec4(-1.0f, 1.0f, 0.0f, 1.0f)); in genFullQuadVertices() 133 return vertices; in genFullQuadVertices() 138 Vertex(Vec4 vertices_) : vertices(vertices_) {} in Vertex() 139 Vec4 vertices; member [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ray_query/ |
D | vktRayQueryWatertightnessTests.cpp | 719 std::vector<tcu::Vec4> vertices; in initVertexBuffer() local 730 vertices.reserve(3 * height * width); in initVertexBuffer() 742 vertices.push_back(tcu::Vec4(x0, y0, z, w)); in initVertexBuffer() 743 vertices.push_back(tcu::Vec4(xm, y1, z, w)); in initVertexBuffer() 744 vertices.push_back(tcu::Vec4(x1, ym, z, w)); in initVertexBuffer() 757 vertices.reserve(3 * height * width); in initVertexBuffer() 769 vertices.push_back(tcu::Vec4(x0, y0, z, w)); in initVertexBuffer() 770 vertices.push_back(tcu::Vec4(xm, y1, z, w)); in initVertexBuffer() 771 vertices.push_back(tcu::Vec4(x1, ym, z, w)); in initVertexBuffer() 786 vertices.push_back(a); in initVertexBuffer() [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ray_tracing/ |
D | vktRayTracingWatertightnessTests.cpp | 409 std::vector<tcu::Vec3> vertices; in initBottomAccelerationStructure() local 417 vertices.reserve(3u * m_data.squaresGroupCount); in initBottomAccelerationStructure() 419 vertices.push_back(tcu::Vec3(0.0f, 0.0f, -1.0f)); in initBottomAccelerationStructure() 420 vertices.push_back(tcu::Vec3(0.0f, 1.0f, -1.0f)); in initBottomAccelerationStructure() 421 vertices.push_back(tcu::Vec3(1.0f, 0.0f, -1.0f)); in initBottomAccelerationStructure() 422 vertices.push_back(tcu::Vec3(1.0f, 1.0f, -1.0f)); in initBottomAccelerationStructure() 433 const tcu::Vec3& a = vertices[t.x()]; in initBottomAccelerationStructure() 434 const tcu::Vec3& b = vertices[t.y()]; in initBottomAccelerationStructure() 435 const tcu::Vec3& c = vertices[t.z()]; in initBottomAccelerationStructure() 444 const deUint32 R = (deUint32)vertices.size(); in initBottomAccelerationStructure() [all …]
|
/third_party/mesa3d/src/gallium/auxiliary/hud/ |
D | hud_context.c | 121 float *vertices = hud->bg.vertices + hud->bg.num_vertices*2; in hud_draw_background_quad() local 126 vertices[num++] = (float) x1; in hud_draw_background_quad() 127 vertices[num++] = (float) y1; in hud_draw_background_quad() 129 vertices[num++] = (float) x1; in hud_draw_background_quad() 130 vertices[num++] = (float) y2; in hud_draw_background_quad() 132 vertices[num++] = (float) x2; in hud_draw_background_quad() 133 vertices[num++] = (float) y2; in hud_draw_background_quad() 135 vertices[num++] = (float) x2; in hud_draw_background_quad() 136 vertices[num++] = (float) y1; in hud_draw_background_quad() 147 float *vertices = hud->text.vertices + hud->text.num_vertices*4; in hud_draw_string() local [all …]
|
/third_party/openGLES/extensions/SUN/ |
D | SUN_mesh_array.txt | 36 immediate mode. The application must arrange the vertices in row major format. 37 For example if a quad mesh is 4 vertices wide the, vertices in the first 38 row are the first 4 vertices and vertices in the second row are vertices 5 76 TRIANGLE_MESH_SUN. Width specifies how many vertices are in each row
|
/third_party/skia/third_party/externals/opengl-registry/extensions/SUN/ |
D | SUN_mesh_array.txt | 36 immediate mode. The application must arrange the vertices in row major format. 37 For example if a quad mesh is 4 vertices wide the, vertices in the first 38 row are the first 4 vertices and vertices in the second row are vertices 5 76 TRIANGLE_MESH_SUN. Width specifies how many vertices are in each row
|