Home
last modified time | relevance | path

Searched refs:vertexData (Results 1 – 25 of 80) sorted by relevance

1234

/third_party/flutter/skia/third_party/externals/dawn/src/tests/end2end/
DVertexFormatTests.cpp400 std::vector<uint8_t> vertexData = { in TEST_P() local
419 DoVertexFormatTest(dawn::VertexFormat::UChar2, vertexData, expectedData); in TEST_P()
423 std::vector<uint8_t> vertexData = { in TEST_P() local
438 DoVertexFormatTest(dawn::VertexFormat::UChar4, vertexData, vertexData); in TEST_P()
442 std::vector<int8_t> vertexData = { in TEST_P() local
461 DoVertexFormatTest(dawn::VertexFormat::Char2, vertexData, expectedData); in TEST_P()
465 std::vector<int8_t> vertexData = { in TEST_P() local
480 DoVertexFormatTest(dawn::VertexFormat::Char4, vertexData, vertexData); in TEST_P()
484 std::vector<uint8_t> vertexData = { in TEST_P() local
506 DoVertexFormatTest(dawn::VertexFormat::UChar2Norm, vertexData, expectedData); in TEST_P()
[all …]
/third_party/skia/third_party/externals/dawn/src/tests/end2end/
DVertexFormatTests.cpp404 std::vector<uint8_t> vertexData = { in TEST_P() local
423 DoVertexFormatTest(wgpu::VertexFormat::Uint8x2, vertexData, expectedData); in TEST_P()
427 std::vector<uint8_t> vertexData = { in TEST_P() local
442 DoVertexFormatTest(wgpu::VertexFormat::Uint8x4, vertexData, vertexData); in TEST_P()
446 std::vector<int8_t> vertexData = { in TEST_P() local
465 DoVertexFormatTest(wgpu::VertexFormat::Sint8x2, vertexData, expectedData); in TEST_P()
469 std::vector<int8_t> vertexData = { in TEST_P() local
484 DoVertexFormatTest(wgpu::VertexFormat::Sint8x4, vertexData, vertexData); in TEST_P()
488 std::vector<uint8_t> vertexData = { in TEST_P() local
510 DoVertexFormatTest(wgpu::VertexFormat::Unorm8x2, vertexData, expectedData); in TEST_P()
[all …]
DFirstIndexOffsetTests.cpp160 std::vector<float> vertexData(firstVertex * kComponentsPerVertex); in TestImpl() local
161 vertexData.insert(vertexData.end(), {0, 0, 0, 1}); in TestImpl()
162 vertexData.insert(vertexData.end(), {0, 0, 0, 1}); in TestImpl()
164 device, vertexData.data(), vertexData.size() * sizeof(float), wgpu::BufferUsage::Vertex); in TestImpl()
DSamplerFilterAnisotropicTests.cpp183 const float vertexData[] = { in TestFilterAnisotropic() local
188 device, vertexData, sizeof(vertexData), wgpu::BufferUsage::Vertex); in TestFilterAnisotropic()
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
DProvokingVertexTest.cpp123 GLint vertexData[] = {1, 2, 3, 1, 2, 3}; in TEST_P() local
124 glVertexAttribIPointer(mIntAttribLocation, 1, GL_INT, 0, vertexData); in TEST_P()
132 EXPECT_EQ(vertexData[2], pixelValue[0]); in TEST_P()
153 GLint vertexData[] = {1, 2, 3, 1, 2, 3}; in TEST_P() local
154 glVertexAttribIPointer(mIntAttribLocation, 1, GL_INT, 0, vertexData); in TEST_P()
166 EXPECT_EQ(vertexData[2], pixelValue[0]); in TEST_P()
175 EXPECT_EQ(vertexData[cnt], mappedInts[cnt]); in TEST_P()
186 GLint vertexData[] = {1, 2}; in TEST_P() local
189 glVertexAttribIPointer(mIntAttribLocation, 1, GL_INT, 0, vertexData); in TEST_P()
202 EXPECT_EQ(vertexData[1], pixelValue[0]); in TEST_P()
[all …]
/third_party/flutter/skia/third_party/externals/angle2/src/tests/gl_tests/
DProvokingVertexTest.cpp123 GLint vertexData[] = {1, 2, 3, 1, 2, 3}; in TEST_P() local
124 glVertexAttribIPointer(mIntAttribLocation, 1, GL_INT, 0, vertexData); in TEST_P()
132 EXPECT_EQ(vertexData[2], pixelValue); in TEST_P()
150 GLint vertexData[] = {1, 2, 3, 1, 2, 3}; in TEST_P() local
151 glVertexAttribIPointer(mIntAttribLocation, 1, GL_INT, 0, vertexData); in TEST_P()
163 EXPECT_EQ(vertexData[2], pixelValue); in TEST_P()
172 EXPECT_EQ(vertexData[cnt], mappedInts[cnt]); in TEST_P()
181 GLint vertexData[] = {1, 2}; in TEST_P() local
184 glVertexAttribIPointer(mIntAttribLocation, 1, GL_INT, 0, vertexData); in TEST_P()
197 EXPECT_EQ(vertexData[1], pixelValue); in TEST_P()
[all …]
/third_party/vk-gl-cts/modules/gles3/functional/
Des3fShaderStateQueryTests.cpp2177 GLfloat vertexData[4] = {0.0f}; // never accessed in test() local
2182 { 4, GL_FLOAT, 0, GL_FALSE, vertexData }, in test()
2183 { 3, GL_FLOAT, 0, GL_FALSE, vertexData }, in test()
2184 { 2, GL_FLOAT, 0, GL_FALSE, vertexData }, in test()
2185 { 1, GL_FLOAT, 0, GL_FALSE, vertexData }, in test()
2186 { 4, GL_INT, 0, GL_FALSE, vertexData }, in test()
2187 { 3, GL_INT, 0, GL_FALSE, vertexData }, in test()
2188 { 2, GL_INT, 0, GL_FALSE, vertexData }, in test()
2189 { 1, GL_INT, 0, GL_FALSE, vertexData }, in test()
2261 const GLfloat vertexData[4] = {0.0f}; // never accessed in test() local
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/tessellation/
DvktTessellationShaderInputOutputTests.cpp71 const void* vertexData, in runTest() argument
91 deMemcpy(alloc.getHostPtr(), vertexData, static_cast<std::size_t>(vertexDataSizeBytes)); in runTest()
302 std::vector<float> vertexData; in test() local
303 vertexData.reserve(caseDef.inPatchSize); in test()
307 vertexData.push_back(f*f); in test()
309 const VkDeviceSize vertexBufferSize = sizeof(float) * vertexData.size(); in test()
318 VK_FORMAT_R32_SFLOAT, &vertexData[0], vertexBufferSize, referenceImage.getAccess()); in test()
470 std::vector<float> vertexData (INPUT_PATCH_SIZE * numPrimitives, 0.0f); in test() local
471 const VkDeviceSize vertexBufferSize = sizeof(float) * vertexData.size(); in test()
474 vertexData[INPUT_PATCH_SIZE * i] = static_cast<float>(i) / static_cast<float>(numPrimitives); in test()
[all …]
DvktTessellationMiscDrawTests.cpp139 const std::vector<tcu::Vec2> vertexData = genVertexPositions(caseDef.primitiveType); in runTest() local
146 const VkDeviceSize vertexDataSizeBytes = sizeInBytes(vertexData); in runTest()
151 DE_ASSERT(inPatchSize == vertexData.size()); in runTest()
152 DE_ASSERT(sizeof(vertexData[0]) == vertexStride); in runTest()
157 deMemcpy(alloc.getHostPtr(), &vertexData[0], static_cast<std::size_t>(vertexDataSizeBytes)); in runTest()
/third_party/vk-gl-cts/modules/gles2/functional/
Des2fShaderStateQueryTests.cpp1519 GLfloat vertexData[4] = {0.0f}; // never accessed in test() local
1525 { 4, GL_FLOAT, 0, GL_FALSE, vertexData }, in test()
1526 { 3, GL_FLOAT, 0, GL_FALSE, vertexData }, in test()
1527 { 2, GL_FLOAT, 0, GL_FALSE, vertexData }, in test()
1528 { 1, GL_FLOAT, 0, GL_FALSE, vertexData }, in test()
1529 { 4, GL_SHORT, 0, GL_FALSE, vertexData }, in test()
1530 { 3, GL_SHORT, 0, GL_FALSE, vertexData }, in test()
1531 { 2, GL_SHORT, 0, GL_FALSE, vertexData }, in test()
1532 { 1, GL_SHORT, 0, GL_FALSE, vertexData }, in test()
1555 GLfloat vertexData[4] = {0.0f}; // never accessed in test() local
[all …]
/third_party/flutter/skia/third_party/externals/angle2/src/tests/perf_tests/
DMultiviewPerf.cpp459 std::vector<Vertex> vertexData(kNumQuads * kNumVerticesPerQuad); in initializeBenchmark() local
469 auto &v0 = vertexData[index]; in initializeBenchmark()
473 auto &v1 = vertexData[index + 1]; in initializeBenchmark()
477 auto &v2 = vertexData[index + 2]; in initializeBenchmark()
481 auto &v3 = vertexData[index + 3]; in initializeBenchmark()
485 auto &v4 = vertexData[index + 4]; in initializeBenchmark()
489 auto &v5 = vertexData[index + 5]; in initializeBenchmark()
498 glBufferData(GL_ARRAY_BUFFER, vertexData.size() * sizeof(Vertex), vertexData.data(), in initializeBenchmark()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/
DvktDrawNegativeViewportHeightTests.cpp100 std::vector<Vec4> vertexData; in NegativeViewportHeightTestInstance() local
103 vertexData.push_back(Vec4(-0.8f, -0.6f, 0.0f, 1.0f)); // 0-----2 in NegativeViewportHeightTestInstance()
104 vertexData.push_back(Vec4(-0.8f, 0.6f, 0.0f, 1.0f)); // | / in NegativeViewportHeightTestInstance()
105 vertexData.push_back(Vec4(-0.2f, -0.6f, 0.0f, 1.0f)); // 1|/ in NegativeViewportHeightTestInstance()
108 vertexData.push_back(Vec4( 0.2f, -0.6f, 0.0f, 1.0f)); // 0-----1 in NegativeViewportHeightTestInstance()
109 vertexData.push_back(Vec4( 0.8f, -0.6f, 0.0f, 1.0f)); // \ | in NegativeViewportHeightTestInstance()
110 vertexData.push_back(Vec4( 0.8f, 0.6f, 0.0f, 1.0f)); // \|2 in NegativeViewportHeightTestInstance()
112 const VkDeviceSize dataSize = vertexData.size() * sizeof(Vec4); in NegativeViewportHeightTestInstance()
116 …deMemcpy(m_vertexBuffer->getBoundMemory().getHostPtr(), &vertexData[0], static_cast<std::size_t>(d… in NegativeViewportHeightTestInstance()
DvktDrawMultipleClearsWithinRenderPass.cpp217 const auto& vertexData = verticesByTopology[(size_t)m_params.topology]; in MultipleClearsTest() local
219 DE_ASSERT(vertexData.verticesCount <= TOPOLOGY_MAX_VERTICES_COUNT); in MultipleClearsTest()
220 const size_t verticesCount = vertexData.verticesCount; in MultipleClearsTest()
228 deMemcpy(&m_vertices[start], vertexData.vertices, static_cast<size_t>(dataSize)); in MultipleClearsTest()
354 pipelineCreateInfo.addState (PipelineCreateInfo::InputAssemblerState(vertexData.topology)); in MultipleClearsTest()
387 const auto& vertexData = verticesByTopology[(size_t)m_params.topology]; in clearAttachments() local
388 const deUint32 verticesCount = vertexData.verticesCount; in clearAttachments()
/third_party/skia/third_party/externals/angle2/src/tests/perf_tests/
DMultiviewPerf.cpp459 std::vector<Vertex> vertexData(kNumQuads * kNumVerticesPerQuad); in initializeBenchmark() local
469 auto &v0 = vertexData[index]; in initializeBenchmark()
473 auto &v1 = vertexData[index + 1]; in initializeBenchmark()
477 auto &v2 = vertexData[index + 2]; in initializeBenchmark()
481 auto &v3 = vertexData[index + 3]; in initializeBenchmark()
485 auto &v4 = vertexData[index + 4]; in initializeBenchmark()
489 auto &v5 = vertexData[index + 5]; in initializeBenchmark()
498 glBufferData(GL_ARRAY_BUFFER, vertexData.size() * sizeof(Vertex), vertexData.data(), in initializeBenchmark()
/third_party/flutter/skia/src/atlastext/
DSkInternalAtlasTextContext.cpp76 auto vertexData = fArena.makeArrayDefault<char>(vertexDataSize); in recordDraw() local
77 memcpy(vertexData, srcVertexData, vertexDataSize); in recordDraw()
79 auto* vertex = reinterpret_cast<SkAtlasTextRenderer::SDFVertex*>(vertexData) + i; in recordDraw()
87 Draw{glyphCnt, fTokenTracker.issueDrawToken(), targetHandle, vertexData}); in recordDraw()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/sparse_resources/
DvktSparseResourcesShaderIntrinsicsSampled.cpp582 std::vector<tcu::Vec2> vertexData; in recordCommands() local
584 vertexData.push_back(tcu::Vec2(-1.0f,-1.0f)); in recordCommands()
585 vertexData.push_back(tcu::Vec2( 0.0f, 0.0f)); in recordCommands()
587 vertexData.push_back(tcu::Vec2(-1.0f, 1.0f)); in recordCommands()
588 vertexData.push_back(tcu::Vec2( 0.0f, 1.0f)); in recordCommands()
590 vertexData.push_back(tcu::Vec2( 1.0f,-1.0f)); in recordCommands()
591 vertexData.push_back(tcu::Vec2( 1.0f, 0.0f)); in recordCommands()
593 vertexData.push_back(tcu::Vec2( 1.0f, 1.0f)); in recordCommands()
594 vertexData.push_back(tcu::Vec2( 1.0f, 1.0f)); in recordCommands()
596 const VkDeviceSize vertexDataSizeInBytes = sizeInBytes(vertexData); in recordCommands()
[all …]
/third_party/flutter/skia/third_party/externals/dawn/examples/
DCppHelloTriangle.cpp43 static const float vertexData[12] = { in initBuffers() local
48 …vertexBuffer = utils::CreateBufferFromData(device, vertexData, sizeof(vertexData), dawn::BufferUsa… in initBuffers()
/third_party/skia/third_party/externals/dawn/examples/
DCppHelloTriangle.cpp47 static const float vertexData[12] = { in initBuffers() local
50 vertexBuffer = utils::CreateBufferFromData(device, vertexData, sizeof(vertexData), in initBuffers()
/third_party/flutter/skia/tests/
DGrMeshTest.cpp94 SkTArray<std::array<Box, 4>> vertexData; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
116 std::array<Box, 4>& boxVertices = vertexData.push_back(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
145 expandedVertexData.push_back(vertexData[i][kIndexPattern[j]]); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
163 auto vbuff = helper->makeVertexBuffer(vertexData); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
187 auto vbuff = helper->makeVertexBuffer(vertexData); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/third_party/vk-gl-cts/modules/gles3/performance/
Des3pBufferDataUploadTests.cpp3882 static void generateLayeredGridVertexAttribData4C4V (std::vector<tcu::Vec4>& vertexData, const Laye… in generateLayeredGridVertexAttribData4C4V() argument
3888 vertexData.resize(getLayeredGridNumVertices(scene) * 2); in generateLayeredGridVertexAttribData4C4V()
3900vertexData[(cellY * scene.gridWidth * scene.gridLayers + cellX * scene.gridLayers + cellZ) * 12 + … in generateLayeredGridVertexAttribData4C4V()
3901vertexData[(cellY * scene.gridWidth * scene.gridLayers + cellX * scene.gridLayers + cellZ) * 12 + … in generateLayeredGridVertexAttribData4C4V()
3903vertexData[(cellY * scene.gridWidth * scene.gridLayers + cellX * scene.gridLayers + cellZ) * 12 + … in generateLayeredGridVertexAttribData4C4V()
3904vertexData[(cellY * scene.gridWidth * scene.gridLayers + cellX * scene.gridLayers + cellZ) * 12 + … in generateLayeredGridVertexAttribData4C4V()
3906vertexData[(cellY * scene.gridWidth * scene.gridLayers + cellX * scene.gridLayers + cellZ) * 12 + … in generateLayeredGridVertexAttribData4C4V()
3907vertexData[(cellY * scene.gridWidth * scene.gridLayers + cellX * scene.gridLayers + cellZ) * 12 + … in generateLayeredGridVertexAttribData4C4V()
3909vertexData[(cellY * scene.gridWidth * scene.gridLayers + cellX * scene.gridLayers + cellZ) * 12 + … in generateLayeredGridVertexAttribData4C4V()
3910vertexData[(cellY * scene.gridWidth * scene.gridLayers + cellX * scene.gridLayers + cellZ) * 12 + … in generateLayeredGridVertexAttribData4C4V()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineInputAssemblyTests.cpp88 std::vector<Vertex4RGBA>& vertexData) const = 0;
112 std::vector<Vertex4RGBA>& vertexData) const;
133 std::vector<Vertex4RGBA>& vertexData) const;
145 std::vector<Vertex4RGBA>& vertexData,
378 …kIndexType indexType, std::vector<deUint32>& indexData, std::vector<Vertex4RGBA>& vertexData) const in createBufferData()
706 vertexData = vertices; in createBufferData()
754 …kIndexType indexType, std::vector<deUint32>& indexData, std::vector<Vertex4RGBA>& vertexData) const in createBufferData()
1050 vertexData = vertices; in createBufferData()
1062 std::vector<Vertex4RGBA>& vertexData, in createListPrimitives() argument
1095 vertexData.push_back(vertex); in createListPrimitives()
[all …]
/third_party/vk-gl-cts/modules/gles31/functional/
Des31fVertexAttributeBindingTests.cpp1242 std::vector<tcu::Vec4> vertexData (12 * GRID_SIZE * GRID_SIZE); in createBuffers() local
1249vertexData[(y * GRID_SIZE + x) * 12 + 0] = tcu::Vec4(float(x+0) / float(GRID_SIZE) * 2.0f - 1.0f,… in createBuffers()
1250 vertexData[(y * GRID_SIZE + x) * 12 + 1] = color; in createBuffers()
1251vertexData[(y * GRID_SIZE + x) * 12 + 2] = tcu::Vec4(float(x+0) / float(GRID_SIZE) * 2.0f - 1.0f,… in createBuffers()
1252 vertexData[(y * GRID_SIZE + x) * 12 + 3] = color; in createBuffers()
1253vertexData[(y * GRID_SIZE + x) * 12 + 4] = tcu::Vec4(float(x+1) / float(GRID_SIZE) * 2.0f - 1.0f,… in createBuffers()
1254 vertexData[(y * GRID_SIZE + x) * 12 + 5] = color; in createBuffers()
1255vertexData[(y * GRID_SIZE + x) * 12 + 6] = tcu::Vec4(float(x+0) / float(GRID_SIZE) * 2.0f - 1.0f,… in createBuffers()
1256 vertexData[(y * GRID_SIZE + x) * 12 + 7] = color; in createBuffers()
1257vertexData[(y * GRID_SIZE + x) * 12 + 8] = tcu::Vec4(float(x+1) / float(GRID_SIZE) * 2.0f - 1.0f,… in createBuffers()
[all …]
/third_party/skia/src/gpu/text/
DGrTextBlob.cpp100 for (auto[quad, glyph, vertexData] : quadData) { in fill_transformed_vertices_2D()
101 auto[pos, rect] = vertexData; in fill_transformed_vertices_2D()
130 for (auto[quad, glyph, vertexData] : quadData) { in fill_transformed_vertices_3D()
131 auto[pos, rect] = vertexData; in fill_transformed_vertices_3D()
846 SkSpan<const VertexData> vertexData,
908 SkSpan<const VertexData> vertexData, in TransformedMaskSubRun() argument
914 , fVertexData{vertexData}
925 SkSpan<VertexData> vertexData = alloc->makePODArray<VertexData>( in Make() local
942 format, blob, strikeToSourceScale, bounds, vertexData, in Make()
1103 SkSpan<const VertexData> vertexData,
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/renderpass/
DvktRenderPassSubpassDependencyTests.cpp1463 vector<Vec4> vertexData; in iterateInternal() local
1535 vertexData.push_back(Vec4(x, y, primitiveDepth, 1.0f)); in iterateInternal()
1540 const size_t vertexCount = vertexData.size(); in iterateInternal()
1579 deMemcpy(vertexBufPtr, vertexData.data(), vertexDataSize); in iterateInternal()
1583 vkd.cmdDraw(*commandBuffer, (deUint32)vertexData.size(), 1u, 0u, 0u); in iterateInternal()
1768 …rimitiveList primitiveList (rr::PrimitiveList(primitiveType, (deUint32)vertexData.size(), 0)); in iterateInternal()
1771 …vertices = rr::VertexAttrib(rr::VERTEXATTRIBTYPE_FLOAT, 4, sizeof(tcu::Vec4), 0, &vertexData[0]); in iterateInternal()
1887 vector<Vec4> vertexData; in iterateInternal() local
2124 vertexData.push_back(Vec4((float)((rand.getUint32() % m_width) * 2) / (float)m_width - 1.0f, in iterateInternal()
2131 const size_t vertexDataSize = vertexData.size() * sizeof(Vec4); in iterateInternal()
[all …]
/third_party/vk-gl-cts/modules/glshared/
DglsFragOpInteractionCase.cpp311 static void setupAttributes (sglr::Context& ctx, const VertexDataStorage& vertexData, deUint32 prog… in setupAttributes() argument
313 for (int attribNdx = 0; attribNdx < vertexData.getNumEntries(); ++attribNdx) in setupAttributes()
315 const glu::VertexArrayBinding bindingPtr = getEntryWithPointer(vertexData, attribNdx); in setupAttributes()
517 VertexDataStorage vertexData (m_vertexShader.getInputs(), numVertices); in iterate() local
543 const glu::VertexArrayBinding layoutEntry = getEntryWithPointer(vertexData, attribNdx); in iterate()
573 const glu::VertexArrayPointer posPtr = getEntryWithPointer(vertexData, positionNdx).pointer; in iterate()
587 setupAttributes(ctx, vertexData, program); in iterate()

1234