Home
last modified time | relevance | path

Searched refs:m_cmdBuffer (Results 1 – 25 of 60) sorted by relevance

123

/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/renderpass/
DvktDynamicRenderingTests.cpp738 Move<VkCommandBuffer> m_cmdBuffer; member in vkt::renderpass::__anonb06207f10111::DynamicRenderingTestInstance
984 m_cmdBuffer = allocateCommandBuffer(vk, device, *m_cmdPool, in createCmdBuffer()
1002 beginCommandBuffer(vk, *m_cmdBuffer); in rendering()
1005 beginRenderingKHR(*m_cmdBuffer, in rendering()
1013 vk.cmdBindPipeline(*m_cmdBuffer, VK_PIPELINE_BIND_POINT_GRAPHICS, pipeline); in rendering()
1018 vk.cmdBindVertexBuffers(*m_cmdBuffer, 0u, 1u, &vertexBuffer, &vertexBufferOffset); in rendering()
1021 vk.cmdDraw(*m_cmdBuffer, 4u, 1u, 8u, 0u); in rendering()
1022 vk.cmdDraw(*m_cmdBuffer, 4u, 1u, 0u, 0u); in rendering()
1023 vk.cmdDraw(*m_cmdBuffer, 4u, 1u, 4u, 0u); in rendering()
1025 vk.cmdEndRenderingKHR(*m_cmdBuffer); in rendering()
[all …]
DvktRenderPassUnusedAttachmentSparseFillingTests.cpp180 Move<VkCommandBuffer> m_cmdBuffer; member in vkt::renderpass::__anon89f38d150111::InputAttachmentSparseFillingTestInstance
571 m_cmdBuffer = allocateCommandBuffer(vk, vkDevice, *m_cmdPool, VK_COMMAND_BUFFER_LEVEL_PRIMARY); in createCommandBuffer()
573 beginCommandBuffer(vk, *m_cmdBuffer, 0u); in createCommandBuffer()
591 …vk.cmdPipelineBarrier(*m_cmdBuffer, VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, VK_PIPELINE_STAGE_TRANSFER_… in createCommandBuffer()
593 …vk.cmdClearColorImage(*m_cmdBuffer, **m_outputImage, VK_IMAGE_LAYOUT_GENERAL, &clearColor.color, 1… in createCommandBuffer()
601 …vk.cmdPipelineBarrier(*m_cmdBuffer, VK_PIPELINE_STAGE_TRANSFER_BIT, VK_PIPELINE_STAGE_COMPUTE_SHAD… in createCommandBuffer()
620 …vk.cmdPipelineBarrier(*m_cmdBuffer, VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, VK_PIPELINE_STAGE_TRANSFER_… in createCommandBuffer()
623 …vk.cmdClearColorImage(*m_cmdBuffer, **inputImage, VK_IMAGE_LAYOUT_GENERAL, &clearColor.color, 1, &… in createCommandBuffer()
632 …vk.cmdPipelineBarrier(*m_cmdBuffer, VK_PIPELINE_STAGE_TRANSFER_BIT, VK_PIPELINE_STAGE_COMPUTE_SHAD… in createCommandBuffer()
648 RenderpassSubpass::cmdBeginRenderPass(vk, *m_cmdBuffer, &renderPassBeginInfo, &subpassBeginInfo); in createCommandBuffer()
[all …]
DvktRenderPassFragmentDensityMapTests.cpp1169 Move<VkCommandBuffer> m_cmdBuffer; member in vkt::renderpass::__anond45972f70111::FragmentDensityMapTestInstance
1847 m_cmdBuffer = allocateCommandBuffer(vk, vkDevice, *m_cmdPool, VK_COMMAND_BUFFER_LEVEL_PRIMARY); in FragmentDensityMapTestInstance()
1854 beginCommandBuffer(vk, *m_cmdBuffer, 0u); in FragmentDensityMapTestInstance()
1874 …vk.cmdPipelineBarrier(*m_cmdBuffer, VK_PIPELINE_STAGE_NONE_KHR, VK_PIPELINE_STAGE_COLOR_ATTACHMENT… in FragmentDensityMapTestInstance()
1905 vk.cmdBeginRenderingKHR(*m_cmdBuffer, &renderingInfo); in FragmentDensityMapTestInstance()
1920 … renderPassWrapper->cmdBeginRenderPass(*m_cmdBuffer, &renderPassBeginInfoProduceDynamicDensityMap); in FragmentDensityMapTestInstance()
1923 …vk.cmdBindPipeline(*m_cmdBuffer, VK_PIPELINE_BIND_POINT_GRAPHICS, *m_graphicsPipelineProduceDynami… in FragmentDensityMapTestInstance()
1924 vk.cmdBindVertexBuffers(*m_cmdBuffer, 0, 1, &m_vertexBufferDDM.get(), &vertexBufferOffset); in FragmentDensityMapTestInstance()
1925 vk.cmdDraw(*m_cmdBuffer, (deUint32)m_verticesDDM.size(), 1, 0, 0); in FragmentDensityMapTestInstance()
1929 vk.cmdEndRenderingKHR(*m_cmdBuffer); in FragmentDensityMapTestInstance()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/dynamic_state/
DvktDynamicStateBaseClass.cpp114 m_cmdBuffer = vk::allocateCommandBuffer(m_vk, device, &cmdBufferAllocateInfo); in initialize()
205 beginCommandBuffer(m_vk, *m_cmdBuffer, 0u); in beginRenderPassWithClearColor()
208 …initialTransitionColor2DImage(m_vk, *m_cmdBuffer, m_colorTargetImage->object(), vk::VK_IMAGE_LAYOU… in beginRenderPassWithClearColor()
212 m_vk.cmdClearColorImage(*m_cmdBuffer, m_colorTargetImage->object(), in beginRenderPassWithClearColor()
223 m_vk.cmdPipelineBarrier(*m_cmdBuffer, vk::VK_PIPELINE_STAGE_TRANSFER_BIT, in beginRenderPassWithClearColor()
227 …vk::beginRenderPass(m_vk, *m_cmdBuffer, *m_renderPass, *m_framebuffer, vk::makeRect2D(0, 0, WIDTH,… in beginRenderPassWithClearColor()
233 m_vk.cmdSetViewport(*m_cmdBuffer, 0, 1, &viewport); in setDynamicViewportState()
236 m_vk.cmdSetScissor(*m_cmdBuffer, 0, 1, &scissor); in setDynamicViewportState()
241 m_vk.cmdSetViewport(*m_cmdBuffer, 0, viewportCount, pViewports); in setDynamicViewportState()
242 m_vk.cmdSetScissor(*m_cmdBuffer, 0, viewportCount, pScissors); in setDynamicViewportState()
[all …]
DvktDynamicStateDSTests.cpp101 vk::Move<vk::VkCommandBuffer> m_cmdBuffer; member in vkt::DynamicState::__anon553616590111::DepthStencilBaseCase
287m_cmdBuffer = vk::allocateCommandBuffer(m_vk, device, *m_cmdPool, vk::VK_COMMAND_BUFFER_LEVEL_PRIM… in initialize()
304 beginCommandBuffer(m_vk, *m_cmdBuffer, 0u); in beginRenderPassWithClearColor()
306 …initialTransitionColor2DImage(m_vk, *m_cmdBuffer, m_colorTargetImage->object(), vk::VK_IMAGE_LAYOU… in beginRenderPassWithClearColor()
308 …initialTransitionDepthStencil2DImage(m_vk, *m_cmdBuffer, m_depthStencilImage->object(), vk::VK_IMA… in beginRenderPassWithClearColor()
312 m_vk.cmdClearColorImage(*m_cmdBuffer, m_colorTargetImage->object(), in beginRenderPassWithClearColor()
318 m_vk.cmdClearDepthStencilImage(*m_cmdBuffer, m_depthStencilImage->object(), in beginRenderPassWithClearColor()
328 m_vk.cmdPipelineBarrier(*m_cmdBuffer, vk::VK_PIPELINE_STAGE_TRANSFER_BIT, in beginRenderPassWithClearColor()
333 …transition2DImage(m_vk, *m_cmdBuffer, m_depthStencilImage->object(), vk::VK_IMAGE_ASPECT_DEPTH_BIT… in beginRenderPassWithClearColor()
338 …vk::beginRenderPass(m_vk, *m_cmdBuffer, *m_renderPass, *m_framebuffer, vk::makeRect2D(0, 0, WIDTH,… in beginRenderPassWithClearColor()
[all …]
DvktDynamicStateRSTests.cpp99 vk::Move<vk::VkCommandBuffer> m_cmdBuffer; member in vkt::DynamicState::__anona047ffe70111::DepthBiasBaseCase
266m_cmdBuffer = vk::allocateCommandBuffer(m_vk, device, *m_cmdPool, vk::VK_COMMAND_BUFFER_LEVEL_PRIM… in initialize()
283 beginCommandBuffer(m_vk, *m_cmdBuffer, 0u); in beginRenderPassWithClearColor()
285 …initialTransitionColor2DImage(m_vk, *m_cmdBuffer, m_colorTargetImage->object(), vk::VK_IMAGE_LAYOU… in beginRenderPassWithClearColor()
287 …initialTransitionDepthStencil2DImage(m_vk, *m_cmdBuffer, m_depthStencilImage->object(), vk::VK_IMA… in beginRenderPassWithClearColor()
291 m_vk.cmdClearColorImage(*m_cmdBuffer, m_colorTargetImage->object(), in beginRenderPassWithClearColor()
298 m_vk.cmdClearDepthStencilImage(*m_cmdBuffer, m_depthStencilImage->object(), in beginRenderPassWithClearColor()
310 m_vk.cmdPipelineBarrier(*m_cmdBuffer, vk::VK_PIPELINE_STAGE_TRANSFER_BIT, in beginRenderPassWithClearColor()
315 …transition2DImage(m_vk, *m_cmdBuffer, m_depthStencilImage->object(), vk::VK_IMAGE_ASPECT_DEPTH_BIT… in beginRenderPassWithClearColor()
320 …vk::beginRenderPass(m_vk, *m_cmdBuffer, *m_renderPass, *m_framebuffer, vk::makeRect2D(0, 0, WIDTH,… in beginRenderPassWithClearColor()
[all …]
DvktDynamicStateGeneralTests.cpp89 m_vk.cmdBindPipeline(*m_cmdBuffer, vk::VK_PIPELINE_BIND_POINT_GRAPHICS, *m_pipeline); in iterate()
93 m_vk.cmdBindVertexBuffers(*m_cmdBuffer, 0, 1, &vertexBuffer, &vertexBufferOffset); in iterate()
97 m_vk.cmdDraw(*m_cmdBuffer, static_cast<deUint32>(m_data.size()), 1, 0, 0); in iterate()
101 m_vk.cmdDraw(*m_cmdBuffer, static_cast<deUint32>(m_data.size()), 1, 0, 0); in iterate()
103 endRenderPass(m_vk, *m_cmdBuffer); in iterate()
104 endCommandBuffer(m_vk, *m_cmdBuffer); in iterate()
106 submitCommandsAndWait(m_vk, device, queue, m_cmdBuffer.get()); in iterate()
182 m_vk.cmdBindPipeline(*m_cmdBuffer, vk::VK_PIPELINE_BIND_POINT_GRAPHICS, *m_pipeline); in iterate()
186 m_vk.cmdBindVertexBuffers(*m_cmdBuffer, 0, 1, &vertexBuffer, &vertexBufferOffset); in iterate()
195 m_vk.cmdDraw(*m_cmdBuffer, static_cast<deUint32>(m_data.size()), 1, 0, 0); in iterate()
[all …]
DvktDynamicStateVPTests.cpp88 m_vk.cmdBindPipeline(*m_cmdBuffer, vk::VK_PIPELINE_BIND_POINT_GRAPHICS, *m_pipeline); in iterate()
92 m_vk.cmdBindVertexBuffers(*m_cmdBuffer, 0, 1, &vertexBuffer, &vertexBufferOffset); in iterate()
94 m_vk.cmdDraw(*m_cmdBuffer, static_cast<deUint32>(m_data.size()), 1, 0, 0); in iterate()
96 endRenderPass(m_vk, *m_cmdBuffer); in iterate()
97 endCommandBuffer(m_vk, *m_cmdBuffer); in iterate()
99 submitCommandsAndWait(m_vk, device, queue, m_cmdBuffer.get()); in iterate()
296 m_vk.cmdBindPipeline(*m_cmdBuffer, vk::VK_PIPELINE_BIND_POINT_GRAPHICS, *m_pipeline); in iterate()
300 m_vk.cmdBindVertexBuffers(*m_cmdBuffer, 0, 1, &vertexBuffer, &vertexBufferOffset); in iterate()
302 m_vk.cmdDraw(*m_cmdBuffer, static_cast<deUint32>(m_data.size()), 1, 0, 0); in iterate()
304 endRenderPass(m_vk, *m_cmdBuffer); in iterate()
[all …]
DvktDynamicStateCBTests.cpp97 m_vk.cmdBindPipeline(*m_cmdBuffer, vk::VK_PIPELINE_BIND_POINT_GRAPHICS, *m_pipeline); in iterate()
107 m_vk.cmdBindVertexBuffers(*m_cmdBuffer, 0, 1, &vertexBuffer, &vertexBufferOffset); in iterate()
109 m_vk.cmdDraw(*m_cmdBuffer, static_cast<deUint32>(m_data.size()), 1, 0, 0); in iterate()
111 endRenderPass(m_vk, *m_cmdBuffer); in iterate()
112 endCommandBuffer(m_vk, *m_cmdBuffer); in iterate()
114 submitCommandsAndWait(m_vk, device, queue, m_cmdBuffer.get()); in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ray_query/
DvktRayQueryProceduralGeometryTests.cpp79 Move<VkCommandBuffer> m_cmdBuffer; member in vkt::RayQuery::__anon54984b170111::RayQueryProceduralGeometryTestBase
143 m_cmdBuffer = allocateCommandBuffer(vkd, device, *m_cmdPool, VK_COMMAND_BUFFER_LEVEL_PRIMARY); in iterate()
149 beginCommandBuffer(vkd, *m_cmdBuffer, 0u); in iterate()
174 …cmdPipelineMemoryBarrier(vkd, *m_cmdBuffer, VK_PIPELINE_STAGE_TRANSFER_BIT, VK_PIPELINE_STAGE_COMP… in iterate()
178 …cmdPipelineMemoryBarrier(vkd, *m_cmdBuffer, VK_PIPELINE_STAGE_ACCELERATION_STRUCTURE_BUILD_BIT_KHR… in iterate()
180 vkd.cmdBindPipeline(*m_cmdBuffer, VK_PIPELINE_BIND_POINT_COMPUTE, *pipeline); in iterate()
183 …vkd.cmdBindDescriptorSets(*m_cmdBuffer, VK_PIPELINE_BIND_POINT_COMPUTE, *pipelineLayout, 0, 1, &re… in iterate()
184 vkd.cmdDispatch(*m_cmdBuffer, imageSize, imageSize, 1); in iterate()
187 …vkd.cmdBindDescriptorSets(*m_cmdBuffer, VK_PIPELINE_BIND_POINT_COMPUTE, *pipelineLayout, 0, 1, &re… in iterate()
188 vkd.cmdDispatch(*m_cmdBuffer, imageSize, imageSize, 1); in iterate()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/multiview/
DvktMultiViewRenderTests.cpp319 Move<VkCommandBuffer> m_cmdBuffer; member in vkt::MultiView::__anond31af0430111::MultiViewRenderTestInstance
408 imageBarrier(*m_device, *m_cmdBuffer, m_colorAttachment->getImage(), subresourceRange, in beforeDraw()
414 …m_device->cmdClearColorImage(*m_cmdBuffer, m_colorAttachment->getImage(), VK_IMAGE_LAYOUT_TRANSFE… in beforeDraw()
416 imageBarrier(*m_device, *m_cmdBuffer, m_colorAttachment->getImage(), subresourceRange, in beforeDraw()
433 imageBarrier(*m_device, *m_cmdBuffer, m_colorAttachment->getImage(), subresourceRange, in afterDraw()
447 beginCommandBuffer(*m_device, *m_cmdBuffer); in draw()
463 …cmdBeginRenderPass(*m_device, *m_cmdBuffer, &renderPassBeginInfo, VK_SUBPASS_CONTENTS_INLINE, m_pa… in draw()
466 …m_device->cmdBindVertexBuffers(*m_cmdBuffer, 0u, DE_LENGTH_OF_ARRAY(vertexBuffers), vertexBuffers,… in draw()
469 m_device->cmdBindIndexBuffer(*m_cmdBuffer, *m_vertexIndicesBuffer, 0u, VK_INDEX_TYPE_UINT32); in draw()
477 *m_cmdBuffer, in draw()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineTimestampTests.cpp702 Move<VkCommandBuffer> m_cmdBuffer; member in vkt::pipeline::__anon818c47370111::TimestampTestInstance
778 m_cmdBuffer = allocateCommandBuffer(vk, vkDevice, *m_cmdPool, VK_COMMAND_BUFFER_LEVEL_PRIMARY); in TimestampTestInstance()
802 beginCommandBuffer(vk, *m_cmdBuffer, 0u); in configCommandBuffer()
805 vk.cmdResetQueryPool(*m_cmdBuffer, *m_queryPool, 0u, TimestampTest::ENTRY_COUNT); in configCommandBuffer()
810 vk.cmdWriteTimestamp(*m_cmdBuffer, stage, *m_queryPool, timestampEntry++); in configCommandBuffer()
813 endCommandBuffer(vk, *m_cmdBuffer); in configCommandBuffer()
830 submitCommandsAndWait(vk, vkDevice, queue, m_cmdBuffer.get()); in iterate()
1058 Move<VkCommandBuffer> m_cmdBuffer; member in vkt::pipeline::__anon818c47370111::CalibratedTimestampTestInstance
1182 m_cmdBuffer = allocateCommandBuffer(vk, vkDevice, *m_cmdPool, VK_COMMAND_BUFFER_LEVEL_PRIMARY);
1184 beginCommandBuffer(vk, *m_cmdBuffer, 0u);
[all …]
DvktPipelinePushDescriptorTests.cpp262 Move<VkCommandBuffer> m_cmdBuffer; member in vkt::pipeline::__anona8f46c020111::PushDescriptorBufferGraphicsTestInstance
523m_cmdBuffer = allocateCommandBuffer(m_vkd, *m_device, *m_cmdPool, VK_COMMAND_BUFFER_LEVEL_PRIMARY); in init()
524 beginCommandBuffer(m_vkd, *m_cmdBuffer, 0u); in init()
525 …beginRenderPass(m_vkd, *m_cmdBuffer, *m_renderPass, *m_framebuffer, makeRect2D(0, 0, m_renderSize.… in init()
526 m_vkd.cmdBindPipeline(*m_cmdBuffer, VK_PIPELINE_BIND_POINT_GRAPHICS, *m_graphicsPipelines); in init()
527 m_vkd.cmdBindVertexBuffers(*m_cmdBuffer, 0, 1, &m_vertexBuffer.get(), &vertexBufferOffset); in init()
553 …m_vkd.cmdPushDescriptorSetKHR(*m_cmdBuffer, VK_PIPELINE_BIND_POINT_GRAPHICS, *m_pipelineLayout, 0,… in init()
554 m_vkd.cmdDraw(*m_cmdBuffer, 6, 1, 6 * quadNdx, 0); in init()
557 endRenderPass(m_vkd, *m_cmdBuffer); in init()
558 endCommandBuffer(m_vkd, *m_cmdBuffer); in init()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ray_tracing/
DvktRayTracingProceduralGeometryTests.cpp95 Move<VkCommandBuffer> m_cmdBuffer; member in vkt::RayTracing::__anona0d663fb0111::RayTracingProceduralGeometryTestBase
147 m_cmdBuffer = allocateCommandBuffer(vkd, device, *m_cmdPool, VK_COMMAND_BUFFER_LEVEL_PRIMARY); in iterate()
153 beginCommandBuffer(vkd, *m_cmdBuffer, 0u); in iterate()
178 …cmdPipelineMemoryBarrier(vkd, *m_cmdBuffer, VK_PIPELINE_STAGE_TRANSFER_BIT, VK_PIPELINE_STAGE_RAY_… in iterate()
182 …cmdPipelineMemoryBarrier(vkd, *m_cmdBuffer, VK_PIPELINE_STAGE_ACCELERATION_STRUCTURE_BUILD_BIT_KHR… in iterate()
184 vkd.cmdBindPipeline(*m_cmdBuffer, VK_PIPELINE_BIND_POINT_RAY_TRACING_KHR, *m_pipeline); in iterate()
187 …vkd.cmdBindDescriptorSets(*m_cmdBuffer, VK_PIPELINE_BIND_POINT_RAY_TRACING_KHR, *m_pipelineLayout,… in iterate()
188 …cmdTraceRays(vkd, *m_cmdBuffer, &rgenSBTR, &missSBTR, &chitSBTR, &callableSBTR, imageSize, imageSi… in iterate()
191 …vkd.cmdBindDescriptorSets(*m_cmdBuffer, VK_PIPELINE_BIND_POINT_RAY_TRACING_KHR, *m_pipelineLayout,… in iterate()
192 …cmdTraceRays(vkd, *m_cmdBuffer, &rgenSBTR, &missSBTR, &chitSBTR, &callableSBTR, imageSize, imageSi… in iterate()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/api/
DvktApiFillBufferTests.cpp83 Move<VkCommandBuffer> m_cmdBuffer; member in vkt::api::__anon774ffdec0111::FillWholeBufferTestInstance
98 m_cmdBuffer = allocateCommandBuffer(vk, vkDevice, *m_cmdPool, VK_COMMAND_BUFFER_LEVEL_PRIMARY); in FillWholeBufferTestInstance()
132 beginCommandBuffer(vk, *m_cmdBuffer); in iterate()
133 …vk.cmdFillBuffer(*m_cmdBuffer, *m_destination, m_params.dstOffset, VK_WHOLE_SIZE, deUint32{0x01010… in iterate()
134 …vk.cmdPipelineBarrier(*m_cmdBuffer, VK_PIPELINE_STAGE_TRANSFER_BIT, VK_PIPELINE_STAGE_HOST_BIT, 0,… in iterate()
135 endCommandBuffer(vk, *m_cmdBuffer); in iterate()
136 submitCommandsAndWait(vk, vkDevice, queue, m_cmdBuffer.get()); in iterate()
186 Move<VkCommandBuffer> m_cmdBuffer; member in vkt::api::__anon774ffdec0111::FillBufferTestInstance
227 m_cmdBuffer = allocateCommandBuffer(vk, vkDevice, *m_cmdPool, VK_COMMAND_BUFFER_LEVEL_PRIMARY); in FillBufferTestInstance()
260 beginCommandBuffer(vk, *m_cmdBuffer); in iterate()
[all …]
DvktApiBufferViewAccessTests.cpp118 Move<VkCommandBuffer> m_cmdBuffer; member in vkt::api::__anonb7ffbfd20111::BufferViewTestInstance
389 m_cmdBuffer = allocateCommandBuffer(vk, vkDevice, *m_cmdPool, VK_COMMAND_BUFFER_LEVEL_PRIMARY); in BufferViewTestInstance()
391 beginCommandBuffer(vk, *m_cmdBuffer, 0u); in BufferViewTestInstance()
413 …vk.cmdPipelineBarrier(*m_cmdBuffer, VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, VK_PIPELINE_STAGE_COLOR_ATT… in BufferViewTestInstance()
415 …beginRenderPass(vk, *m_cmdBuffer, *m_renderPass, *m_framebuffer, makeRect2D(0, 0, m_renderSize.x()… in BufferViewTestInstance()
419 vk.cmdBindPipeline(*m_cmdBuffer, VK_PIPELINE_BIND_POINT_GRAPHICS, *m_graphicsPipelines); in BufferViewTestInstance()
420 …vk.cmdBindDescriptorSets(*m_cmdBuffer, VK_PIPELINE_BIND_POINT_GRAPHICS, *m_pipelineLayout, 0u, 1, … in BufferViewTestInstance()
421 vk.cmdBindVertexBuffers(*m_cmdBuffer, 0, 1, &m_vertexBuffer.get(), vertexBufferOffset); in BufferViewTestInstance()
422 vk.cmdDraw(*m_cmdBuffer, (deUint32)m_vertices.size(), 1, 0, 0); in BufferViewTestInstance()
423 endRenderPass(vk, *m_cmdBuffer); in BufferViewTestInstance()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/
DvktDrawIndexedTest.cpp158 m_vk.cmdBindVertexBuffers(*m_cmdBuffer, 0, 1, &vertexBuffer, &vertexBufferOffset); in iterate()
159 m_vk.cmdBindIndexBuffer(*m_cmdBuffer, indexBuffer, 0, vk::VK_INDEX_TYPE_UINT32); in iterate()
161 m_vk.cmdBindPipeline(*m_cmdBuffer, vk::VK_PIPELINE_BIND_POINT_GRAPHICS, *m_pipeline); in iterate()
163 m_vk.cmdDrawIndexed(*m_cmdBuffer, 6, 1, 2, VERTEX_OFFSET, 0); in iterate()
166 endCommandBuffer(m_vk, *m_cmdBuffer); in iterate()
168 submitCommandsAndWait(m_vk, device, queue, m_cmdBuffer.get()); in iterate()
241 m_vk.cmdBindVertexBuffers(*m_cmdBuffer, 0, 1, &vertexBuffer, &vertexBufferOffset); in iterate()
242 m_vk.cmdBindIndexBuffer(*m_cmdBuffer, indexBuffer, 0, vk::VK_INDEX_TYPE_UINT32); in iterate()
243 m_vk.cmdBindPipeline(*m_cmdBuffer, vk::VK_PIPELINE_BIND_POINT_GRAPHICS, *m_pipeline); in iterate()
248 m_vk.cmdDrawIndexed(*m_cmdBuffer, 6, 4, 2, VERTEX_OFFSET, 2); in iterate()
[all …]
DvktDrawSimpleTest.cpp121 m_vk.cmdBindVertexBuffers(*m_cmdBuffer, 0, 1, &vertexBuffer, &vertexBufferOffset); in iterate()
122 m_vk.cmdBindPipeline(*m_cmdBuffer, vk::VK_PIPELINE_BIND_POINT_GRAPHICS, *m_pipeline); in iterate()
127 m_vk.cmdDraw(*m_cmdBuffer, 6, 1, 2, 0); in iterate()
130 m_vk.cmdDraw(*m_cmdBuffer, 4, 1, 2, 0); in iterate()
150 endCommandBuffer(m_vk, *m_cmdBuffer); in iterate()
152 submitCommandsAndWait(m_vk, device, queue, m_cmdBuffer.get()); in iterate()
212 m_vk.cmdBindVertexBuffers(*m_cmdBuffer, 0, 1, &vertexBuffer, &vertexBufferOffset); in iterate()
214 m_vk.cmdBindPipeline(*m_cmdBuffer, vk::VK_PIPELINE_BIND_POINT_GRAPHICS, *m_pipeline); in iterate()
219 m_vk.cmdDraw(*m_cmdBuffer, 6, 4, 2, 2); in iterate()
222 m_vk.cmdDraw(*m_cmdBuffer, 4, 4, 2, 2); in iterate()
[all …]
DvktDrawBaseClass.cpp145m_cmdBuffer = vk::allocateCommandBuffer(m_vk, device, *m_cmdPool, vk::VK_COMMAND_BUFFER_LEVEL_PRIM… in initialize()
192 beginCommandBuffer(m_vk, *m_cmdBuffer, 0u); in beginRender()
194 …initialTransitionColor2DImage(m_vk, *m_cmdBuffer, m_colorTargetImage->object(), vk::VK_IMAGE_LAYOU… in beginRender()
198 m_vk.cmdClearColorImage(*m_cmdBuffer, m_colorTargetImage->object(), in beginRender()
209 m_vk.cmdPipelineBarrier(*m_cmdBuffer, vk::VK_PIPELINE_STAGE_TRANSFER_BIT, in beginRender()
220 …vk::beginRendering(m_vk, *m_cmdBuffer, *m_colorTargetView, renderArea, clearColor, vk::VK_IMAGE_LA… in beginRender()
223 vk::beginRenderPass(m_vk, *m_cmdBuffer, *m_renderPass, *m_framebuffer, renderArea, content); in beginRender()
229 vk::endRendering(m_vk, *m_cmdBuffer); in endRender()
231 vk::endRenderPass(m_vk, *m_cmdBuffer); in endRender()
DvktDrawDiscardRectanglesTests.cpp470 Move<VkCommandBuffer> m_cmdBuffer; member in vkt::Draw::__anon49d82dd50111::DiscardRectanglesTestInstance
574 m_cmdBuffer = allocateCommandBuffer (vk, device, *m_cmdPool, VK_COMMAND_BUFFER_LEVEL_PRIMARY); in iterate()
579 beginCommandBuffer(vk, *m_cmdBuffer); in iterate()
590 …initialTransitionColor2DImage(vk, *m_cmdBuffer, *m_colorImage, VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OP… in iterate()
592 …beginRendering(vk, *m_cmdBuffer, *m_colorAttachment, renderArea, clearValue, VK_IMAGE_LAYOUT_COLOR… in iterate()
606 vk.cmdBeginRenderPass(*m_cmdBuffer, &renderPassBeginInfo, VK_SUBPASS_CONTENTS_INLINE); in iterate()
609 vk.cmdBindPipeline(*m_cmdBuffer, VK_PIPELINE_BIND_POINT_GRAPHICS, *m_pipeline); in iterate()
613 vk.cmdBindVertexBuffers(*m_cmdBuffer, 0u, 1u, &vertexBuffer, &vertexBufferOffset); in iterate()
617 vk.cmdSetDiscardRectangleEXT(*m_cmdBuffer, 0u, m_params.numRectangles, m_rectangles.data()); in iterate()
621 vk.cmdSetScissor(*m_cmdBuffer, 0u, 1u, &rectScissor); in iterate()
[all …]
DvktBasicDrawTests.cpp301 vk::Move<vk::VkCommandBuffer> m_cmdBuffer; member in vkt::Draw::__anone24d6ef50111::DrawTestInstanceBase
417m_cmdBuffer = vk::allocateCommandBuffer(m_vk, device, *m_cmdPool, vk::VK_COMMAND_BUFFER_LEVEL_PRIM… in initialize()
465 beginCommandBuffer(m_vk, *m_cmdBuffer, 0u); in beginRenderPass()
467 …initialTransitionColor2DImage(m_vk, *m_cmdBuffer, m_colorTargetImage->object(), vk::VK_IMAGE_LAYOU… in beginRenderPass()
471 m_vk.cmdClearColorImage(*m_cmdBuffer, m_colorTargetImage->object(), in beginRenderPass()
482 m_vk.cmdPipelineBarrier(*m_cmdBuffer, vk::VK_PIPELINE_STAGE_TRANSFER_BIT, in beginRenderPass()
489 vk::beginRendering(m_vk, *m_cmdBuffer, *m_colorTargetView, renderArea, clearColor); in beginRenderPass()
491 …vk::beginRenderPass(m_vk, *m_cmdBuffer, *m_renderPass, *m_framebuffer, renderArea, 1u, &clearColor… in beginRenderPass()
497 vk::endRendering(m_vk, *m_cmdBuffer); in endRenderPass()
499 vk::endRenderPass(m_vk, *m_cmdBuffer); in endRenderPass()
[all …]
DvktDrawInstancedTests.cpp241 vk::Move<vk::VkCommandBuffer> m_cmdBuffer; member in vkt::Draw::__anon4fea55ac0111::InstancedDrawInstance
490m_cmdBuffer = vk::allocateCommandBuffer(m_vk, device, *m_cmdPool, vk::VK_COMMAND_BUFFER_LEVEL_PRIM… in InstancedDrawInstance()
566 beginCommandBuffer(m_vk, *m_cmdBuffer, 0u); in iterate()
586 …m_vk.cmdPipelineBarrier(*m_cmdBuffer, vk::VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, vk::VK_PIPELINE_STAGE… in iterate()
592 …initialTransitionColor2DImage(m_vk, *m_cmdBuffer, m_colorTargetImage->object(), vk::VK_IMAGE_LAYOU… in iterate()
597 m_vk.cmdClearColorImage(*m_cmdBuffer, m_colorTargetImage->object(), in iterate()
608 m_vk.cmdPipelineBarrier(*m_cmdBuffer, vk::VK_PIPELINE_STAGE_TRANSFER_BIT, in iterate()
614 …beginRendering(m_vk, *m_cmdBuffer, *m_colorTargetView, renderArea, clearColor, vk::VK_IMAGE_LAYOUT… in iterate()
616 beginRenderPass(m_vk, *m_cmdBuffer, *m_renderPass, *m_framebuffer, renderArea); in iterate()
621 m_vk.cmdBindIndexBuffer(*m_cmdBuffer, indexBuffer->object(), 0, vk::VK_INDEX_TYPE_UINT32); in iterate()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/conditional_rendering/
DvktConditionalClearAttachmentTests.cpp95 vk::VkCommandBuffer targetCmdBuffer = *m_cmdBuffer; in iterate()
164 beginConditionalRendering(m_vk, *m_cmdBuffer, *m_conditionalBuffer, m_conditionalData); in iterate()
168 m_vk.cmdExecuteCommands(*m_cmdBuffer, 1, &m_secondaryCmdBuffer.get()); in iterate()
172 m_vk.cmdClearAttachments(*m_cmdBuffer, 1, &clearAttachment, 1, &rect); in iterate()
175 m_vk.cmdEndConditionalRenderingEXT(*m_cmdBuffer); in iterate()
179 m_vk.cmdExecuteCommands(*m_cmdBuffer, 1, &m_secondaryCmdBuffer.get()); in iterate()
183 endCommandBuffer(m_vk, *m_cmdBuffer); in iterate()
185 submitCommandsAndWait(m_vk, device, queue, m_cmdBuffer.get()); in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/util/
DvktDrawUtil.cpp380 m_cmdBuffer = makeCommandBuffer(vk, device, *m_cmdPool); in VulkanDrawContext()
586 beginCommandBuffer(vk, *m_cmdBuffer); in draw()
590 …beginRenderPass(vk, *m_cmdBuffer, *m_renderPass, *m_framebuffer, makeRect2D(0, 0, m_framebufferSta… in draw()
592 …beginRenderPass(vk, *m_cmdBuffer, *m_renderPass, *m_framebuffer, makeRect2D(0, 0, m_framebufferSta… in draw()
597 …vk.cmdBindDescriptorSets(*m_cmdBuffer, VK_PIPELINE_BIND_POINT_GRAPHICS, *(object->pipelineLayout),… in draw()
598 vk.cmdBindPipeline(*m_cmdBuffer, VK_PIPELINE_BIND_POINT_GRAPHICS, *(object->pipeline)); in draw()
599 vk.cmdBindVertexBuffers(*m_cmdBuffer, 0u, 1u, &(**(object->vertexBuffer)), &zeroOffset); in draw()
600 vk.cmdDraw(*m_cmdBuffer, static_cast<deUint32>(object->vertexCount), 1u, 0u, 0u); in draw()
602 endRenderPass(vk, *m_cmdBuffer); in draw()
611 …vk.cmdPipelineBarrier(*m_cmdBuffer, VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, VK_PIPELINE_STA… in draw()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/fragment_ops/
DvktFragmentOperationsScissorMultiViewportTests.cpp344 m_cmdBuffer = allocateCommandBuffer (vk, device, *m_cmdPool, VK_COMMAND_BUFFER_LEVEL_PRIMARY); in ScissorRenderer()
353 beginCommandBuffer(vk, *m_cmdBuffer); in draw()
355 …beginRenderPass(vk, *m_cmdBuffer, *m_renderPass, *m_framebuffer, makeRect2D(0, 0, m_renderSize.x()… in draw()
357 vk.cmdBindPipeline(*m_cmdBuffer, VK_PIPELINE_BIND_POINT_GRAPHICS, *m_pipeline); in draw()
360 vk.cmdBindVertexBuffers(*m_cmdBuffer, 0u, 1u, &m_vertexBuffer.get(), &vertexBufferOffset); in draw()
362 …vk.cmdDraw(*m_cmdBuffer, static_cast<deUint32>(m_numViewports), 1u, 0u, 0u); // one vertex per vie… in draw()
363 endRenderPass(vk, *m_cmdBuffer); in draw()
365 copyImageToBuffer(vk, *m_cmdBuffer, *m_colorImage, colorBuffer, m_renderSize); in draw()
367 endCommandBuffer(vk, *m_cmdBuffer); in draw()
368 submitCommandsAndWait(vk, device, queue, *m_cmdBuffer); in draw()
[all …]

123