/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/ |
D | IndexBufferOffsetTest.cpp | 128 std::vector<GLubyte> indexData(6 * 3 * sizeof(GLuint), 0); in runTest() local 129 memcpy(indexData.data() + indexDataWidth, indexDataIn, indexDataWidth); in runTest() 146 glBufferSubData(GL_ELEMENT_ARRAY_BUFFER, 0, indexDataWidth, indexData.data()); in runTest() 148 indexData.data() + indexDataWidth); in runTest() 150 indexData.data() + 2 * indexDataWidth); in runTest() 154 glBufferSubData(GL_ELEMENT_ARRAY_BUFFER, 0, 4, indexData.data()); in runTest() 156 indexData.data() + 4); in runTest() 160 glBufferSubData(GL_ELEMENT_ARRAY_BUFFER, 0, 3 * indexDataWidth - 4, indexData.data()); in runTest() 162 indexData.data() + 3 * indexDataWidth - 4); in runTest() 167 glBufferSubData(GL_ELEMENT_ARRAY_BUFFER, 0, 3 * indexDataWidth, indexData.data()); in runTest() [all …]
|
D | DrawElementsTest.cpp | 194 std::vector<GLuint> indexData[2]; in TEST_P() local 195 indexData[0].push_back(0); in TEST_P() 196 indexData[0].push_back(1); in TEST_P() 197 indexData[0].push_back(2); in TEST_P() 198 indexData[0].push_back(2); in TEST_P() 199 indexData[0].push_back(3); in TEST_P() 200 indexData[0].push_back(0); in TEST_P() 202 indexData[1] = indexData[0]; in TEST_P() 203 for (GLuint &item : indexData[1]) in TEST_P() 219 glBufferData(GL_ELEMENT_ARRAY_BUFFER, sizeof(GLuint) * indexData[0].size(), &indexData[0][0], in TEST_P() [all …]
|
D | ProvokingVertexTest.cpp | 254 GLint indexData[] = {0, 1, 2, -1, 1, 2, 3, 4, -1, 3, 4, 5}; in TEST_P() local 268 glDrawElements(GL_TRIANGLE_STRIP, 12, GL_UNSIGNED_INT, indexData); in TEST_P() 281 GLint vertexA = indexData[triOffsets[triIndex] + 0]; in TEST_P() 282 GLint vertexB = indexData[triOffsets[triIndex] + 1]; in TEST_P() 283 GLint vertexC = indexData[triOffsets[triIndex] + 2]; in TEST_P()
|
D | SRGBFramebufferTest.cpp | 337 unsigned int indexData[] = {0}; in TEST_P() local 340 glBufferData(GL_ELEMENT_ARRAY_BUFFER, sizeof(int), indexData, GL_STATIC_DRAW); in TEST_P()
|
D | UniformBufferTest.cpp | 1469 std::array<GLshort, 12> indexData = {{0, 1, 2, 2, 1, 3, 0, 1, 2, 2, 1, 3}}; in TEST_P() local 1473 glBufferData(GL_ELEMENT_ARRAY_BUFFER, indexData.size() * sizeof(GLshort), indexData.data(), in TEST_P() 1528 std::array<GLshort, 12> indexData = {{0, 1, 2, 2, 1, 3, 0, 1, 2, 2, 1, 3}}; in TEST_P() local 1532 glBufferData(GL_ELEMENT_ARRAY_BUFFER, indexData.size() * sizeof(GLshort), indexData.data(), in TEST_P() 1586 std::array<GLshort, 6> indexData = {{0, 1, 2, 2, 1, 3}}; in TEST_P() local 1590 glBufferData(GL_ELEMENT_ARRAY_BUFFER, indexData.size() * sizeof(GLshort), indexData.data(), in TEST_P() 1649 std::array<GLshort, 6> indexData = {{0, 1, 2, 2, 1, 3}}; in TEST_P() local 1653 glBufferData(GL_ELEMENT_ARRAY_BUFFER, indexData.size() * sizeof(GLshort), indexData.data(), in TEST_P()
|
D | GLSLTest.cpp | 1214 GLushort indexData[] = {1, 2, 5, 3, 10000}; in TEST_P() local 1217 glBufferData(GL_ELEMENT_ARRAY_BUFFER, sizeof(indexData), indexData, GL_STATIC_DRAW); in TEST_P() 1225 GLint expected = indexData[first + count - 1]; in TEST_P() 1269 GLubyte indexData[] = {1, 2, 5, 3, 100}; in TEST_P() local 1272 glBufferData(GL_ELEMENT_ARRAY_BUFFER, sizeof(indexData), indexData, GL_STATIC_DRAW); in TEST_P() 1280 GLint expected = indexData[first + count - 1]; in TEST_P() 1349 GLubyte indexData[] = {1, 4, 5, 2, 50, 61}; in TEST_P() local 1352 glBufferData(GL_ELEMENT_ARRAY_BUFFER, sizeof(indexData), indexData, GL_STATIC_DRAW); in TEST_P() 1354 GLVertexIDIntegerTextureDrawElementsU8Line_Helper(0, indexData); in TEST_P() 1355 GLVertexIDIntegerTextureDrawElementsU8Line_Helper(1, indexData); in TEST_P() [all …]
|
/third_party/flutter/skia/third_party/externals/angle2/src/tests/gl_tests/ |
D | IndexBufferOffsetTest.cpp | 69 void runTest(GLenum type, int typeWidth, void *indexData) in runTest() argument 80 glBufferSubData(GL_ELEMENT_ARRAY_BUFFER, indexDataWidth, indexDataWidth, indexData); in runTest() 98 glBufferSubData(GL_ELEMENT_ARRAY_BUFFER, 2 * indexDataWidth, indexDataWidth, indexData); in runTest() 118 GLubyte indexData[] = {0, 1, 2, 1, 2, 3}; in TEST_P() local 119 runTest(GL_UNSIGNED_BYTE, 1, indexData); in TEST_P() 130 GLushort indexData[] = {0, 1, 2, 1, 2, 3}; in TEST_P() local 131 runTest(GL_UNSIGNED_SHORT, 2, indexData); in TEST_P() 140 GLuint indexData[] = {0, 1, 2, 1, 2, 3}; in TEST_P() local 141 runTest(GL_UNSIGNED_INT, 4, indexData); in TEST_P() 148 GLushort indexData[] = {0, 1, 2, 1, 2, 3}; in TEST_P() local [all …]
|
D | DrawElementsTest.cpp | 149 std::vector<GLuint> indexData[2]; in TEST_P() local 150 indexData[0].push_back(0); in TEST_P() 151 indexData[0].push_back(1); in TEST_P() 152 indexData[0].push_back(2); in TEST_P() 153 indexData[0].push_back(2); in TEST_P() 154 indexData[0].push_back(3); in TEST_P() 155 indexData[0].push_back(0); in TEST_P() 157 indexData[1] = indexData[0]; in TEST_P() 158 for (GLuint &item : indexData[1]) in TEST_P() 206 glBufferData(GL_ELEMENT_ARRAY_BUFFER, sizeof(GLuint) * indexData[0].size(), &indexData[0][0], in TEST_P() [all …]
|
D | ProvokingVertexTest.cpp | 249 GLint indexData[] = {0, 1, 2, -1, 1, 2, 3, 4, -1, 3, 4, 5}; in TEST_P() local 263 glDrawElements(GL_TRIANGLE_STRIP, 12, GL_UNSIGNED_INT, indexData); in TEST_P() 276 GLint vertexA = indexData[triOffsets[triIndex] + 0]; in TEST_P() 277 GLint vertexB = indexData[triOffsets[triIndex] + 1]; in TEST_P() 278 GLint vertexC = indexData[triOffsets[triIndex] + 2]; in TEST_P()
|
D | UniformBufferTest.cpp | 1401 std::array<GLshort, 12> indexData = {{0, 1, 2, 2, 1, 3, 0, 1, 2, 2, 1, 3}}; in TEST_P() local 1405 glBufferData(GL_ELEMENT_ARRAY_BUFFER, indexData.size() * sizeof(GLshort), indexData.data(), in TEST_P() 1446 std::array<GLshort, 12> indexData = {{0, 1, 2, 2, 1, 3, 0, 1, 2, 2, 1, 3}}; in TEST_P() local 1450 glBufferData(GL_ELEMENT_ARRAY_BUFFER, indexData.size() * sizeof(GLshort), indexData.data(), in TEST_P() 1490 std::array<GLshort, 6> indexData = {{0, 1, 2, 2, 1, 3}}; in TEST_P() local 1494 glBufferData(GL_ELEMENT_ARRAY_BUFFER, indexData.size() * sizeof(GLshort), indexData.data(), in TEST_P() 1538 std::array<GLshort, 6> indexData = {{0, 1, 2, 2, 1, 3}}; in TEST_P() local 1542 glBufferData(GL_ELEMENT_ARRAY_BUFFER, indexData.size() * sizeof(GLshort), indexData.data(), in TEST_P()
|
D | BufferDataTest.cpp | 299 unsigned int indexData[] = {0, 1}; in TEST_P() local 311 glBufferData(GL_ELEMENT_ARRAY_BUFFER, sizeof(int) * 1, indexData, GL_STATIC_DRAW); in TEST_P() 323 glBufferData(GL_COPY_READ_BUFFER, 4, &indexData[1], GL_STATIC_DRAW); in TEST_P()
|
/third_party/skia/src/gpu/tessellate/ |
D | PathCurveTessellator.cpp | 174 SkTArray<std::array<uint16_t, 3>> indexData(triangleCount); in WriteFixedIndexBufferBaseIndex() local 180 const auto* neighborInLastResolveLevel = &indexData.push_back({baseIndex, in WriteFixedIndexBufferBaseIndex() 189 SkDEBUGCODE(auto* firstTriangleInCurrentResolveLevel = indexData.end()); in WriteFixedIndexBufferBaseIndex() 195 indexData.push_back({(*neighborInLastResolveLevel)[0], in WriteFixedIndexBufferBaseIndex() 199 indexData.push_back({(*neighborInLastResolveLevel)[1], in WriteFixedIndexBufferBaseIndex() 206 SkASSERT(indexData.count() == triangleCount); in WriteFixedIndexBufferBaseIndex() 209 vertexWriter.writeArray(indexData.data(), indexData.count()); in WriteFixedIndexBufferBaseIndex()
|
/third_party/flutter/skia/third_party/externals/angle2/src/tests/perf_tests/ |
D | IndexDataManagerTest.cpp | 169 std::vector<GLushort> indexData(mIndexCount); local 172 indexData[index] = static_cast<GLushort>(index); 176 mIndexBuffer.bufferData(nullptr, gl::BufferBinding::Array, &indexData[0], 177 indexData.size() * sizeof(GLushort), gl::BufferUsage::StaticDraw));
|
D | InstancingPerf.cpp | 147 std::vector<GLuint> indexData; in initializeBenchmark() local 157 indexData.push_back(baseIndexData[indexIndex] + pointIndex * pointVertexStride); in initializeBenchmark() 175 indexData.push_back(index); in initializeBenchmark() 198 glBufferData(GL_ELEMENT_ARRAY_BUFFER, VectorSizeBytes(indexData), &indexData[0], in initializeBenchmark()
|
D | DynamicPromotionPerfTest.cpp | 90 std::vector<GLushort> indexData; in initializeBenchmark() local 100 indexData.push_back(static_cast<GLushort>(index)); in initializeBenchmark() 120 glBufferData(GL_ELEMENT_ARRAY_BUFFER, elementArraySize, indexData.data(), GL_DYNAMIC_DRAW); in initializeBenchmark()
|
/third_party/skia/third_party/externals/angle2/src/tests/perf_tests/ |
D | IndexDataManagerTest.cpp | 170 std::vector<GLushort> indexData(mIndexCount); local 173 indexData[index] = static_cast<GLushort>(index); 177 mIndexBuffer.bufferData(nullptr, gl::BufferBinding::Array, &indexData[0], 178 indexData.size() * sizeof(GLushort), gl::BufferUsage::StaticDraw));
|
D | InstancingPerf.cpp | 147 std::vector<GLuint> indexData; in initializeBenchmark() local 157 indexData.push_back(baseIndexData[indexIndex] + pointIndex * pointVertexStride); in initializeBenchmark() 175 indexData.push_back(index); in initializeBenchmark() 198 glBufferData(GL_ELEMENT_ARRAY_BUFFER, VectorSizeBytes(indexData), &indexData[0], in initializeBenchmark()
|
D | DynamicPromotionPerfTest.cpp | 90 std::vector<GLushort> indexData; in initializeBenchmark() local 100 indexData.push_back(static_cast<GLushort>(index)); in initializeBenchmark() 120 glBufferData(GL_ELEMENT_ARRAY_BUFFER, elementArraySize, indexData.data(), GL_DYNAMIC_DRAW); in initializeBenchmark()
|
/third_party/skia/third_party/externals/dawn/examples/ |
D | CppHelloTriangle.cpp | 39 static const uint32_t indexData[3] = { in initBuffers() local 45 utils::CreateBufferFromData(device, indexData, sizeof(indexData), wgpu::BufferUsage::Index); in initBuffers()
|
D | CubeReflection.cpp | 47 static const uint32_t indexData[6 * 6] = {0, 1, 2, 0, 2, 3, in initBuffers() local 59 utils::CreateBufferFromData(device, indexData, sizeof(indexData), wgpu::BufferUsage::Index); in initBuffers()
|
/third_party/flutter/skia/third_party/externals/dawn/examples/ |
D | CppHelloTriangle.cpp | 38 static const uint32_t indexData[3] = { in initBuffers() local 41 …indexBuffer = utils::CreateBufferFromData(device, indexData, sizeof(indexData), dawn::BufferUsageB… in initBuffers()
|
D | CubeReflection.cpp | 46 static const uint32_t indexData[6*6] = { in initBuffers() local 65 …indexBuffer = utils::CreateBufferFromData(device, indexData, sizeof(indexData), dawn::BufferUsageB… in initBuffers()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/ |
D | vktPipelineInputAssemblyTests.cpp | 87 std::vector<deUint32>& indexData, 111 std::vector<deUint32>& indexData, 132 std::vector<deUint32>& indexData, 144 std::vector<deUint32>& indexData, 378 …logy, int primitiveCount, VkIndexType indexType, std::vector<deUint32>& indexData, std::vector<Ver… in createBufferData() argument 707 indexData = indices; in createBufferData() 754 …logy, int primitiveCount, VkIndexType indexType, std::vector<deUint32>& indexData, std::vector<Ver… in createBufferData() argument 1051 indexData = indices; in createBufferData() 1061 std::vector<deUint32>& indexData, in createListPrimitives() argument 1079 indexData.push_back(InputAssemblyTest::getRestartIndex(indexType)); in createListPrimitives() [all …]
|
/third_party/vk-gl-cts/modules/gles3/performance/ |
D | es3pBufferDataUploadTests.cpp | 3920 static void generateLayeredGridIndexData (std::vector<deUint32>& indexData, const LayeredGridSpec& … in generateLayeredGridIndexData() argument 3922 indexData.resize(getLayeredGridNumVertices(scene) * 2); in generateLayeredGridIndexData() 3925 indexData[ndx] = ndx; in generateLayeredGridIndexData() 4250 std::vector<deUint32> indexData; in uploadScene() local 4252 generateLayeredGridIndexData(indexData, scene); in uploadScene() 4257 …gl.bufferData(GL_ELEMENT_ARRAY_BUFFER, (int)(indexData.size() * sizeof(deUint32)), &indexData[0], … in uploadScene() 4344 std::vector<deUint32> indexData; in runSample() local 4356 generateLayeredGridIndexData(indexData, sample.scene); in runSample() 4358 …gl.bufferData(GL_ELEMENT_ARRAY_BUFFER, (int)(indexData.size() * sizeof(deUint32)), &indexData[0], … in runSample() 4477 std::vector<deUint32> indexData; in runSample() local [all …]
|
/third_party/skia/third_party/externals/d3d12allocator/src/ |
D | D3D12Sample.cpp | 966 D3D12_SUBRESOURCE_DATA indexData = {}; in InitD3D() local 967 indexData.pData = iList; // pointer to our index array in InitD3D() 968 indexData.RowPitch = iBufferSize; // size of all our index buffer in InitD3D() 969 indexData.SlicePitch = iBufferSize; // also the size of our index buffer in InitD3D() 973 r = UpdateSubresources(g_CommandList, g_IndexBuffer, iBufferUploadHeap, 0, 0, 1, &indexData); in InitD3D()
|