Home
last modified time | relevance | path

Searched refs:command_buffer (Results 1 – 25 of 46) sorted by relevance

12

/third_party/mesa3d/src/vulkan/runtime/
Dvk_command_buffer.c31 vk_command_buffer_init(struct vk_command_buffer *command_buffer, in vk_command_buffer_init() argument
35 memset(command_buffer, 0, sizeof(*command_buffer)); in vk_command_buffer_init()
36 vk_object_base_init(pool->base.device, &command_buffer->base, in vk_command_buffer_init()
39 command_buffer->pool = pool; in vk_command_buffer_init()
40 command_buffer->level = level; in vk_command_buffer_init()
41 vk_dynamic_graphics_state_init(&command_buffer->dynamic_graphics_state); in vk_command_buffer_init()
42 vk_cmd_queue_init(&command_buffer->cmd_queue, &pool->alloc); in vk_command_buffer_init()
43 util_dynarray_init(&command_buffer->labels, NULL); in vk_command_buffer_init()
44 command_buffer->region_begin = true; in vk_command_buffer_init()
46 list_add(&command_buffer->pool_link, &pool->command_buffers); in vk_command_buffer_init()
[all …]
Dvk_debug_utils.c192 VK_FROM_HANDLE(vk_command_buffer, command_buffer, _commandBuffer); in vk_common_CmdBeginDebugUtilsLabelEXT()
197 if (!command_buffer->region_begin) in vk_common_CmdBeginDebugUtilsLabelEXT()
198 (void)util_dynarray_pop(&command_buffer->labels, VkDebugUtilsLabelEXT); in vk_common_CmdBeginDebugUtilsLabelEXT()
200 util_dynarray_append(&command_buffer->labels, VkDebugUtilsLabelEXT, in vk_common_CmdBeginDebugUtilsLabelEXT()
202 command_buffer->region_begin = true; in vk_common_CmdBeginDebugUtilsLabelEXT()
208 VK_FROM_HANDLE(vk_command_buffer, command_buffer, _commandBuffer); in vk_common_CmdEndDebugUtilsLabelEXT()
213 if (!command_buffer->region_begin) in vk_common_CmdEndDebugUtilsLabelEXT()
214 (void)util_dynarray_pop(&command_buffer->labels, VkDebugUtilsLabelEXT); in vk_common_CmdEndDebugUtilsLabelEXT()
216 (void)util_dynarray_pop(&command_buffer->labels, VkDebugUtilsLabelEXT); in vk_common_CmdEndDebugUtilsLabelEXT()
217 command_buffer->region_begin = true; in vk_common_CmdEndDebugUtilsLabelEXT()
[all …]
Dvk_command_buffer.h140 vk_command_buffer_init(struct vk_command_buffer *command_buffer,
148 vk_command_buffer_reset(struct vk_command_buffer *command_buffer);
151 vk_command_buffer_finish(struct vk_command_buffer *command_buffer);
/third_party/vulkan-loader/tests/
Dloader_version_tests.cpp668 VkCommandBuffer command_buffer{}; in TEST() local
669 ASSERT_EQ(VK_SUCCESS, AllocateCommandBuffers(device, &buffer_allocate_info, &command_buffer)); in TEST()
675 CmdBeginRendering(command_buffer, &rendering_info); in TEST()
679 CmdBindVertexBuffers2(command_buffer, 0, 0, nullptr, nullptr, nullptr, nullptr); in TEST()
683 CmdBlitImage2(command_buffer, &image_info); in TEST()
687 CmdCopyBuffer2(command_buffer, &copy_info); in TEST()
692 CmdCopyBufferToImage2(command_buffer, &copy_buf_image); in TEST()
696 CmdCopyImage2(command_buffer, &copy_image_info); in TEST()
701 CmdCopyImageToBuffer2(command_buffer, &copy_image_buf); in TEST()
705 CmdEndRendering(command_buffer); in TEST()
[all …]
/third_party/vulkan-loader/tests/live_verification/
Ddynamic_rendering_get_proc_addr.cpp61 VkCommandBuffer command_buffer; in main() local
66 funcs.vkAllocateCommandBuffers(dev, &alloc_info, &command_buffer); in main()
71 VkResult res = vkBeginCommandBuffer(command_buffer, &begin_info); in main()
79 vkCmdBeginRenderingKHR(command_buffer, &rendering_info); in main()
/third_party/vk-gl-cts/external/amber/src/src/vulkan/
Dtransfer_image.cc252 void TransferImage::CopyToHost(CommandBuffer* command_buffer) { in CopyToHost() argument
273 command_buffer->GetVkCommandBuffer(), image_, in CopyToHost()
277 MemoryBarrier(command_buffer); in CopyToHost()
280 void TransferImage::CopyToDevice(CommandBuffer* command_buffer) { in CopyToDevice() argument
301 command_buffer->GetVkCommandBuffer(), host_accessible_buffer_, image_, in CopyToDevice()
305 MemoryBarrier(command_buffer); in CopyToDevice()
308 void TransferImage::ImageBarrier(CommandBuffer* command_buffer, in ImageBarrier() argument
376 device_->GetPtrs()->vkCmdPipelineBarrier(command_buffer->GetVkCommandBuffer(), in ImageBarrier()
Dtransfer_buffer.cc93 void TransferBuffer::CopyToDevice(CommandBuffer* command_buffer) { in CopyToDevice() argument
98 MemoryBarrier(command_buffer); in CopyToDevice()
101 void TransferBuffer::CopyToHost(CommandBuffer* command_buffer) { in CopyToHost() argument
102 MemoryBarrier(command_buffer); in CopyToHost()
Dbuffer_backed_descriptor.cc38 CommandBuffer* command_buffer, in RecordCopyBufferDataToTransferResourceIfNeeded() argument
48 transfer_resource->CopyToDevice(command_buffer); in RecordCopyBufferDataToTransferResourceIfNeeded()
53 CommandBuffer* command_buffer, in RecordCopyTransferResourceToHost() argument
56 transfer_resource->CopyToHost(command_buffer); in RecordCopyTransferResourceToHost()
Dresource.h40 virtual void CopyToDevice(CommandBuffer* command_buffer) = 0;
43 virtual void CopyToHost(CommandBuffer* command_buffer) = 0;
72 void MemoryBarrier(CommandBuffer* command_buffer);
Dtransfer_image.h50 void ImageBarrier(CommandBuffer* command_buffer,
56 void CopyToDevice(CommandBuffer* command_buffer) override;
59 void CopyToHost(CommandBuffer* command_buffer) override;
Dtransfer_buffer.h54 void CopyToDevice(CommandBuffer* command_buffer) override;
57 void CopyToHost(CommandBuffer* command_buffer) override;
Dbuffer_backed_descriptor.h46 CommandBuffer* command_buffer,
49 static Result RecordCopyTransferResourceToHost(CommandBuffer* command_buffer,
Dresource.cc175 void Resource::MemoryBarrier(CommandBuffer* command_buffer) { in MemoryBarrier() argument
197 command_buffer->GetVkCommandBuffer(), VK_PIPELINE_STAGE_ALL_COMMANDS_BIT, in MemoryBarrier()
/third_party/flutter/engine/flutter/shell/platform/fuchsia/flutter/
Dvulkan_surface_producer.cc177 vulkan::VulkanCommandBuffer* command_buffer = in TransitionSurfacesToExternal() local
179 if (!command_buffer->Begin()) in TransitionSurfacesToExternal()
205 if (!command_buffer->InsertPipelineBarrier( in TransitionSurfacesToExternal()
216 if (!command_buffer->End()) in TransitionSurfacesToExternal()
221 {command_buffer->Handle()}, vk_surface->GetCommandBufferFence())) in TransitionSurfacesToExternal()
/third_party/flutter/skia/third_party/externals/imgui/examples/
Dimgui_impl_vulkan.cpp203 void ImGui_ImplVulkan_RenderDrawData(ImDrawData* draw_data, VkCommandBuffer command_buffer) in ImGui_ImplVulkan_RenderDrawData() argument
251 vkCmdBindPipeline(command_buffer, VK_PIPELINE_BIND_POINT_GRAPHICS, g_Pipeline); in ImGui_ImplVulkan_RenderDrawData()
253 …vkCmdBindDescriptorSets(command_buffer, VK_PIPELINE_BIND_POINT_GRAPHICS, g_PipelineLayout, 0, 1, d… in ImGui_ImplVulkan_RenderDrawData()
260 vkCmdBindVertexBuffers(command_buffer, 0, 1, vertex_buffers, vertex_offset); in ImGui_ImplVulkan_RenderDrawData()
261 vkCmdBindIndexBuffer(command_buffer, fd->IndexBuffer, 0, VK_INDEX_TYPE_UINT16); in ImGui_ImplVulkan_RenderDrawData()
273 vkCmdSetViewport(command_buffer, 0, 1, &viewport); in ImGui_ImplVulkan_RenderDrawData()
285 …vkCmdPushConstants(command_buffer, g_PipelineLayout, VK_SHADER_STAGE_VERTEX_BIT, sizeof(float) * 0… in ImGui_ImplVulkan_RenderDrawData()
286 …vkCmdPushConstants(command_buffer, g_PipelineLayout, VK_SHADER_STAGE_VERTEX_BIT, sizeof(float) * 2… in ImGui_ImplVulkan_RenderDrawData()
312 vkCmdSetScissor(command_buffer, 0, 1, &scissor); in ImGui_ImplVulkan_RenderDrawData()
315 vkCmdDrawIndexed(command_buffer, pcmd->ElemCount, 1, idx_offset, vtx_offset, 0); in ImGui_ImplVulkan_RenderDrawData()
[all …]
Dimgui_impl_vulkan.h38 …PI void ImGui_ImplVulkan_RenderDrawData(ImDrawData* draw_data, VkCommandBuffer command_buffer);
39 IMGUI_IMPL_API bool ImGui_ImplVulkan_CreateFontsTexture(VkCommandBuffer command_buffer);
/third_party/flutter/engine/flutter/shell/gpu/
Dgpu_surface_metal.mm92 auto command_buffer =
115 auto submit_callback = [drawable = next_drawable, command_buffer](
118 [command_buffer.get() presentDrawable:drawable.get()];
119 [command_buffer.get() commit];
/third_party/flutter/engine/flutter/vulkan/
Dvulkan_image.cc31 const VulkanCommandBuffer& command_buffer, in InsertImageMemoryBarrier() argument
49 bool success = command_buffer.InsertPipelineBarrier( in InsertImageMemoryBarrier()
/third_party/skia/third_party/externals/imgui/backends/
Dimgui_impl_vulkan.cpp374 …derState(ImDrawData* draw_data, VkPipeline pipeline, VkCommandBuffer command_buffer, ImGui_ImplVul… in ImGui_ImplVulkan_SetupRenderState() argument
380 vkCmdBindPipeline(command_buffer, VK_PIPELINE_BIND_POINT_GRAPHICS, pipeline); in ImGui_ImplVulkan_SetupRenderState()
382 …vkCmdBindDescriptorSets(command_buffer, VK_PIPELINE_BIND_POINT_GRAPHICS, bd->PipelineLayout, 0, 1,… in ImGui_ImplVulkan_SetupRenderState()
390 vkCmdBindVertexBuffers(command_buffer, 0, 1, vertex_buffers, vertex_offset); in ImGui_ImplVulkan_SetupRenderState()
391 …vkCmdBindIndexBuffer(command_buffer, rb->IndexBuffer, 0, sizeof(ImDrawIdx) == 2 ? VK_INDEX_TYPE_UI… in ImGui_ImplVulkan_SetupRenderState()
403 vkCmdSetViewport(command_buffer, 0, 1, &viewport); in ImGui_ImplVulkan_SetupRenderState()
415 …vkCmdPushConstants(command_buffer, bd->PipelineLayout, VK_SHADER_STAGE_VERTEX_BIT, sizeof(float) *… in ImGui_ImplVulkan_SetupRenderState()
416 …vkCmdPushConstants(command_buffer, bd->PipelineLayout, VK_SHADER_STAGE_VERTEX_BIT, sizeof(float) *… in ImGui_ImplVulkan_SetupRenderState()
421 void ImGui_ImplVulkan_RenderDrawData(ImDrawData* draw_data, VkCommandBuffer command_buffer, VkPipel… in ImGui_ImplVulkan_RenderDrawData() argument
486 ImGui_ImplVulkan_SetupRenderState(draw_data, pipeline, command_buffer, rb, fb_width, fb_height); in ImGui_ImplVulkan_RenderDrawData()
[all …]
Dimgui_impl_vulkan.h68 …Gui_ImplVulkan_RenderDrawData(ImDrawData* draw_data, VkCommandBuffer command_buffer, VkPipeline pi…
69 IMGUI_IMPL_API bool ImGui_ImplVulkan_CreateFontsTexture(VkCommandBuffer command_buffer);
/third_party/mesa3d/src/vulkan/overlay-layer/
Doverlay.cpp129 VkCommandBuffer command_buffer; member
538 &draw->command_buffer)); in get_overlay_draw()
540 draw->command_buffer)); in get_overlay_draw()
1023 VkCommandBuffer command_buffer) in ensure_swapchain_fonts() argument
1089 device_data->vtable.CmdPipelineBarrier(command_buffer, in ensure_swapchain_fonts()
1101 device_data->vtable.CmdCopyBufferToImage(command_buffer, in ensure_swapchain_fonts()
1119 device_data->vtable.CmdPipelineBarrier(command_buffer, in ensure_swapchain_fonts()
1175 device_data->vtable.ResetCommandBuffer(draw->command_buffer, 0); in render_swapchain_display()
1187 device_data->vtable.BeginCommandBuffer(draw->command_buffer, &buffer_begin_info); in render_swapchain_display()
1189 ensure_swapchain_fonts(data, draw->command_buffer); in render_swapchain_display()
[all …]
/third_party/flutter/skia/third_party/externals/imgui/examples/example_sdl_vulkan/
Dmain.cpp378 VkCommandBuffer command_buffer = wd->Frames[wd->FrameIndex].CommandBuffer; in main() local
385 err = vkBeginCommandBuffer(command_buffer, &begin_info); in main()
388 ImGui_ImplVulkan_CreateFontsTexture(command_buffer); in main()
393 end_info.pCommandBuffers = &command_buffer; in main()
394 err = vkEndCommandBuffer(command_buffer); in main()
/third_party/flutter/skia/third_party/externals/imgui/examples/example_glfw_vulkan/
Dmain.cpp397 VkCommandBuffer command_buffer = wd->Frames[wd->FrameIndex].CommandBuffer; in main() local
404 err = vkBeginCommandBuffer(command_buffer, &begin_info); in main()
407 ImGui_ImplVulkan_CreateFontsTexture(command_buffer); in main()
412 end_info.pCommandBuffers = &command_buffer; in main()
413 err = vkEndCommandBuffer(command_buffer); in main()
/third_party/skia/third_party/externals/imgui/examples/example_glfw_vulkan/
Dmain.cpp432 VkCommandBuffer command_buffer = wd->Frames[wd->FrameIndex].CommandBuffer; in main() local
439 err = vkBeginCommandBuffer(command_buffer, &begin_info); in main()
442 ImGui_ImplVulkan_CreateFontsTexture(command_buffer); in main()
447 end_info.pCommandBuffers = &command_buffer; in main()
448 err = vkEndCommandBuffer(command_buffer); in main()
/third_party/skia/third_party/externals/imgui/examples/example_sdl_vulkan/
Dmain.cpp424 VkCommandBuffer command_buffer = wd->Frames[wd->FrameIndex].CommandBuffer; in main() local
431 err = vkBeginCommandBuffer(command_buffer, &begin_info); in main()
434 ImGui_ImplVulkan_CreateFontsTexture(command_buffer); in main()
439 end_info.pCommandBuffers = &command_buffer; in main()
440 err = vkEndCommandBuffer(command_buffer); in main()

12