/third_party/vk-gl-cts/external/amber/src/src/vulkan/ |
D | command_buffer.cc | 26 : device_(device), pool_(pool) {} in CommandBuffer() 32 device_->GetPtrs()->vkDestroyFence(device_->GetVkDevice(), fence_, nullptr); in ~CommandBuffer() 35 device_->GetPtrs()->vkFreeCommandBuffers( in ~CommandBuffer() 36 device_->GetVkDevice(), pool_->GetVkCommandPool(), 1, &command_); in ~CommandBuffer() 47 if (device_->GetPtrs()->vkAllocateCommandBuffers( in Initialize() 48 device_->GetVkDevice(), &command_info, &command_) != VK_SUCCESS) { in Initialize() 54 if (device_->GetPtrs()->vkCreateFence(device_->GetVkDevice(), &fence_info, in Initialize() 66 if (device_->GetPtrs()->vkBeginCommandBuffer(command_, &command_begin_info) != in BeginRecording() 76 if (device_->GetPtrs()->vkEndCommandBuffer(command_) != VK_SUCCESS) in SubmitAndReset() 79 if (device_->GetPtrs()->vkResetFences(device_->GetVkDevice(), 1, &fence_) != in SubmitAndReset() [all …]
|
D | transfer_image.cc | 95 image_info_.format = device_->GetVkFormat(format); in TransferImage() 105 device_->GetPtrs()->vkDestroyImageView(device_->GetVkDevice(), view_, in ~TransferImage() 110 device_->GetPtrs()->vkDestroyImage(device_->GetVkDevice(), image_, nullptr); in ~TransferImage() 113 device_->GetPtrs()->vkFreeMemory(device_->GetVkDevice(), memory_, nullptr); in ~TransferImage() 117 device_->GetPtrs()->vkFreeMemory(device_->GetVkDevice(), in ~TransferImage() 122 device_->GetPtrs()->vkDestroyBuffer(device_->GetVkDevice(), in ~TransferImage() 131 if (device_->GetPtrs()->vkCreateImage(device_->GetVkDevice(), &image_info_, in Initialize() 215 if (device_->GetPtrs()->vkCreateImageView(device_->GetVkDevice(), in CreateVkImageView() 272 device_->GetPtrs()->vkCmdCopyImageToBuffer( in CopyToHost() 300 device_->GetPtrs()->vkCmdCopyBufferToImage( in CopyToDevice() [all …]
|
D | resource.cc | 51 : device_(device), size_in_bytes_(size_in_bytes) {} in Resource() 65 if (device_->GetPtrs()->vkCreateBuffer(device_->GetVkDevice(), &buffer_info, in CreateVkBuffer() 88 if (device_->HasMemoryFlags(memory_type_index, flags)) in ChooseMemory() 120 device_->GetPtrs()->vkGetBufferMemoryRequirements(device_->GetVkDevice(), in AllocateAndBindMemoryToVkBuffer() 132 if (device_->GetPtrs()->vkBindBufferMemory(device_->GetVkDevice(), buffer, in AllocateAndBindMemoryToVkBuffer() 147 if (device_->GetPtrs()->vkAllocateMemory(device_->GetVkDevice(), &alloc_info, in AllocateMemory() 156 if (device_->GetPtrs()->vkMapMemory(device_->GetVkDevice(), memory, 0, in MapMemory() 166 device_->GetPtrs()->vkUnmapMemory(device_->GetVkDevice(), memory); in UnMapMemory() 196 device_->GetPtrs()->vkCmdPipelineBarrier( in MemoryBarrier()
|
D | transfer_buffer.cc | 32 if (device_) { in ~TransferBuffer() 33 device_->GetPtrs()->vkDestroyBufferView(device_->GetVkDevice(), view_, in ~TransferBuffer() 38 device_->GetPtrs()->vkFreeMemory(device_->GetVkDevice(), memory_, in ~TransferBuffer() 42 device_->GetPtrs()->vkDestroyBuffer(device_->GetVkDevice(), buffer_, in ~TransferBuffer() 76 if (device_->GetPtrs()->vkCreateBufferView(device_->GetVkDevice(), in Initialize() 83 if (!device_->IsMemoryHostAccessible(memory_type_index) || in Initialize() 84 !device_->IsMemoryHostCoherent(memory_type_index)) { in Initialize()
|
D | compute_pipeline.cc | 58 if (device_->GetPtrs()->vkCreateComputePipelines( in CreateVkComputePipeline() 59 device_->GetVkDevice(), VK_NULL_HANDLE, 1, &pipeline_info, nullptr, in CreateVkComputePipeline() 98 device_->GetPtrs()->vkCmdBindPipeline(command_->GetVkCommandBuffer(), in Compute() 101 device_->GetPtrs()->vkCmdDispatch(command_->GetVkCommandBuffer(), x, y, z); in Compute() 112 device_->GetPtrs()->vkDestroyPipeline(device_->GetVkDevice(), pipeline, in Compute() 114 device_->GetPtrs()->vkDestroyPipelineLayout(device_->GetVkDevice(), in Compute()
|
D | command_pool.cc | 22 CommandPool::CommandPool(Device* device) : device_(device) {} in CommandPool() 28 device_->GetPtrs()->vkDestroyCommandPool(device_->GetVkDevice(), pool_, in ~CommandPool() 36 pool_info.queueFamilyIndex = device_->GetQueueFamilyIndex(); in Initialize() 38 if (device_->GetPtrs()->vkCreateCommandPool( in Initialize() 39 device_->GetVkDevice(), &pool_info, nullptr, &pool_) != VK_SUCCESS) { in Initialize()
|
D | pipeline.cc | 44 : device_(device), in Pipeline() 56 device_->GetPtrs()->vkDestroyDescriptorSetLayout(device_->GetVkDevice(), in ~Pipeline() 64 device_->GetPtrs()->vkDestroyDescriptorPool(device_->GetVkDevice(), in ~Pipeline() 79 push_constant_ = MakeUnique<PushConstant>(device_); in Initialize() 81 command_ = MakeUnique<CommandBuffer>(device_, pool); in Initialize() 104 if (device_->GetPtrs()->vkCreateDescriptorSetLayout( in CreateDescriptorSetLayouts() 105 device_->GetVkDevice(), &desc_info, nullptr, &info.layout) != in CreateDescriptorSetLayouts() 142 if (device_->GetPtrs()->vkCreateDescriptorPool(device_->GetVkDevice(), in CreateDescriptorPools() 164 if (device_->GetPtrs()->vkAllocateDescriptorSets( in CreateDescriptorSets() 165 device_->GetVkDevice(), &desc_set_info, &desc_set) != VK_SUCCESS) { in CreateDescriptorSets() [all …]
|
D | engine_vulkan.cc | 82 auto vk_device = device_->GetVkDevice(); in ~EngineVulkan() 85 device_->GetPtrs()->vkDestroyShaderModule(vk_device, shader.second, in ~EngineVulkan() 97 if (device_) in Initialize() 116 device_ = MakeUnique<Device>(vk_config->instance, vk_config->physical_device, in Initialize() 120 Result r = device_->Initialize( in Initialize() 128 pool_ = MakeUnique<CommandPool>(device_.get()); in Initialize() 150 if (!device_->IsFormatSupportedByPhysicalDevice(*fmt, colour_info.type)) in CreatePipeline() 158 if (!device_->IsFormatSupportedByPhysicalDevice(*fmt, in CreatePipeline() 173 device_.get(), engine_data.fence_timeout_ms, stage_create_info); in CreatePipeline() 179 device_.get(), pipeline->GetColorAttachments(), in CreatePipeline() [all …]
|
D | graphics_pipeline.cc | 409 device_->GetPtrs()->vkDestroyRenderPass(device_->GetVkDevice(), in ~GraphicsPipeline() 427 device_->GetVkFormat(*info->buffer->GetFormat()); in CreateRenderPass() 447 device_->GetVkFormat(*depth_stencil_buffer_.buffer->GetFormat()); in CreateRenderPass() 462 device_->GetVkFormat(*info->buffer->GetFormat()); in CreateRenderPass() 484 if (device_->GetPtrs()->vkCreateRenderPass(device_->GetVkDevice(), in CreateRenderPass() 724 if (device_->GetPtrs()->vkCreateGraphicsPipelines( in CreateVkGraphicsPipeline() 725 device_->GetVkDevice(), VK_NULL_HANDLE, 1, &pipeline_info, nullptr, in CreateVkGraphicsPipeline() 745 MakeUnique<FrameBuffer>(device_, color_buffers_, depth_stencil_buffer_, in Initialize() 771 index_buffer_ = MakeUnique<IndexBuffer>(device_); in SetIndexBuffer() 865 device_->GetPtrs()->vkCmdClearAttachments( in Clear() [all …]
|
D | sampler.cc | 82 Sampler::Sampler(Device* device) : device_(device) {} in Sampler() 108 if (device_->GetPtrs()->vkCreateSampler(device_->GetVkDevice(), &sampler_info, in CreateSampler() 118 device_->GetPtrs()->vkDestroySampler(device_->GetVkDevice(), sampler_, in ~Sampler()
|
D | frame_buffer.cc | 36 : device_(device), in FrameBuffer() 45 device_->GetPtrs()->vkDestroyFramebuffer(device_->GetVkDevice(), frame_, in ~FrameBuffer() 71 device_, *info->buffer->GetFormat(), VK_IMAGE_ASPECT_COLOR_BIT, in Initialize() 98 device_, *depth_stencil_attachment_.buffer->GetFormat(), aspect, in Initialize() 113 device_, *info->buffer->GetFormat(), VK_IMAGE_ASPECT_COLOR_BIT, in Initialize() 133 if (device_->GetPtrs()->vkCreateFramebuffer(device_->GetVkDevice(), in Initialize()
|
D | push_constant.cc | 29 : device_(device), buffer_(MakeUnique<Buffer>()) {} in PushConstant() 79 device_->GetMaxPushConstants()) { in RecordPushConstantVkCommand() 98 device_->GetPtrs()->vkCmdPushConstants( in RecordPushConstantVkCommand() 113 if (static_cast<size_t>(input.offset) >= device_->GetMaxPushConstants()) { in UpdateMemoryWithInput() 119 (device_->GetMaxPushConstants() - input.offset)) { in UpdateMemoryWithInput()
|
D | vertex_buffer.cc | 35 VertexBuffer::VertexBuffer(Device* device) : device_(device) {} in VertexBuffer() 50 vertex_attr_desc_.back().format = device_->GetVkFormat(*format); in SetData() 68 device_->GetPtrs()->vkCmdBindVertexBuffers( in BindToCommandBuffer() 87 MakeUnique<TransferBuffer>(device_, bytes, nullptr)); in SendVertexData()
|
D | index_buffer.cc | 26 IndexBuffer::IndexBuffer(Device* device) : device_(device) {} in IndexBuffer() 49 MakeUnique<TransferBuffer>(device_, buffer->GetSizeInBytes(), nullptr); in SendIndexData() 72 device_->GetPtrs()->vkCmdBindIndexBuffer(command->GetVkCommandBuffer(), in BindToCommandBuffer()
|
D | sampler_descriptor.cc | 37 vulkan_samplers_.emplace_back(MakeUnique<Sampler>(device_)); in CreateResourceIfNeeded() 65 device_->GetPtrs()->vkUpdateDescriptorSets(device_->GetVkDevice(), 1, &write, in UpdateDescriptorSetIfNeeded()
|
D | vertex_buffer_test.cc | 139 : device_(MakeUnique<DummyDevice>()), in VertexBufferTest() 140 commandPool_(MakeUnique<CommandPool>(device_.get())), in VertexBufferTest() 142 MakeUnique<CommandBuffer>(device_.get(), commandPool_.get())), in VertexBufferTest() 143 vertex_buffer_(MakeUnique<VertexBuffer>(device_.get())) { in VertexBufferTest() 159 const void* GetVkBufferPtr() { return device_->GetMemoryPtr(); } in GetVkBufferPtr() 162 std::unique_ptr<DummyDevice> device_; member in amber::vulkan::__anonf659d2680111::VertexBufferTest
|
/third_party/skia/third_party/externals/dawn/src/dawn_node/binding/ |
D | GPUDevice.cpp | 79 : env_(env), device_(device), async_(std::make_shared<AsyncRunner>(env, device)) { in GPUDevice() 80 device_.SetLoggingCallback( in GPUDevice() 85 device_.SetUncapturedErrorCallback( in GPUDevice() 91 device_.SetDeviceLostCallback( in GPUDevice() 130 if (!device_.GetLimits(&limits)) { in getLimits() 138 return interop::GPUQueue::Create<GPUQueue>(env, device_.GetQueue(), async_); in getQueue() 147 device_.Release(); in destroy() 161 return interop::GPUBuffer::Create<GPUBuffer>(env, device_.CreateBuffer(&desc), desc, in createBuffer() 162 device_, async_); in createBuffer() 179 return interop::GPUTexture::Create<GPUTexture>(env, device_.CreateTexture(&desc)); in createTexture() [all …]
|
/third_party/flutter/engine/flutter/vulkan/ |
D | vulkan_swapchain.cc | 68 device_(device), in VulkanSwapchain() 75 if (!device_.IsValid() || !surface.IsValid() || skia_context == nullptr) { in VulkanSwapchain() 84 if (!device_.GetSurfaceCapabilities(surface, &capabilities_)) { in VulkanSwapchain() 105 device_.ChooseSurfaceFormat(surface, desired_formats, &surface_format_); in VulkanSwapchain() 116 if (!device_.ChoosePresentMode(surface, &present_mode)) { in VulkanSwapchain() 129 device_.GetPhysicalDeviceHandle(), // physical device in VulkanSwapchain() 185 if (VK_CALL_LOG_ERROR(vk.CreateSwapchainKHR(device_.GetHandle(), &create_info, in VulkanSwapchain() 198 device_.WaitIdle(); in VulkanSwapchain() 199 vk.DestroySwapchainKHR(device_.GetHandle(), swapchain, nullptr); in VulkanSwapchain() 203 FML_ALLOW_UNUSED_LOCAL(device_.WaitIdle()); in VulkanSwapchain() [all …]
|
D | vulkan_backbuffer.cc | 22 device_(device), in VulkanBackbuffer() 76 vk.DestroySemaphore(device_, semaphore, nullptr); in CreateSemaphores() 82 if (VK_CALL_LOG_ERROR(vk.CreateSemaphore(device_, &create_info, nullptr, in CreateSemaphores() 101 vk.DestroyFence(device_, fence, nullptr); in CreateFences() 107 if (VK_CALL_LOG_ERROR(vk.CreateFence(device_, &create_info, nullptr, in CreateFences() 126 device_, static_cast<uint32_t>(use_fences_.size()), fences, true, in WaitFences() 138 device_, static_cast<uint32_t>(use_fences_.size()), fences)) == in ResetFences()
|
D | vulkan_device.cc | 120 device_ = {device, in VulkanDevice() 123 if (!vk.SetupDeviceProcAddresses(device_)) { in VulkanDevice() 130 vk.GetDeviceQueue(device_, graphics_queue_index_, 0, &queue); in VulkanDevice() 147 if (VK_CALL_LOG_ERROR(vk.CreateCommandPool(device_, &command_pool_create_info, in VulkanDevice() 155 vk.DestroyCommandPool(device_, pool, nullptr); in VulkanDevice() 230 device_ = {device, in VulkanDevice() 233 if (!vk.SetupDeviceProcAddresses(device_)) { in VulkanDevice() 240 vk.GetDeviceQueue(device_, graphics_queue_index_, 0, &queue); in VulkanDevice() 257 if (VK_CALL_LOG_ERROR(vk.CreateCommandPool(device_, &command_pool_create_info, in VulkanDevice() 265 vk.DestroyCommandPool(device_, pool, nullptr); in VulkanDevice() [all …]
|
D | vulkan_command_buffer.cc | 18 : vk(p_vk), device_(device), pool_(pool), valid_(false) { in VulkanCommandBuffer() 29 if (VK_CALL_LOG_ERROR(vk.AllocateCommandBuffers(device_, &allocate_info, in VulkanCommandBuffer() 40 vk.FreeCommandBuffers(device_, pool_, 1, &buffer); in VulkanCommandBuffer()
|
/third_party/cef/tests/cefclient/browser/ |
D | osr_render_handler_win_d3d11.cc | 16 frame_buffer_ = std::make_shared<d3d11::FrameBuffer>(device_); in BrowserLayer() 83 device_ = d3d11::Device::create(); in Initialize() 84 DCHECK(device_); in Initialize() 85 if (!device_) in Initialize() 89 swap_chain_ = device_->create_swapchain(hwnd()); in Initialize() 95 browser_layer_ = std::make_shared<BrowserLayer>(device_); in Initialize() 98 composition_ = std::make_shared<d3d11::Composition>(device_, width, height); in Initialize() 147 popup_layer_ = std::make_shared<PopupLayer>(device_); in OnPopupShow() 197 auto ctx = device_->immedidate_context(); in Render()
|
D | osr_d3d11_win.cc | 292 : device_(to_com_ptr(pdev)), ctx_(std::make_shared<Context>(pctx)) { in Device() 341 auto hr = device_->QueryInterface(__uuidof(dxgi_dev), (void**)&dxgi_dev); in adapter_name() 381 hr = device_->QueryInterface(__uuidof(IDXGIDevice), in create_swapchain() 421 hr = dxgi_factory2->CreateSwapChainForHwnd(device_.get(), window, &sd, in create_swapchain() 446 hr = dxgi_factory->CreateSwapChain(device_.get(), &sd, &swapchain); in create_swapchain() 466 hr = device_->CreateRenderTargetView(back_buffer, nullptr, &rtv); in create_swapchain() 498 device_->CreateSamplerState(&desc, &sampler); in create_swapchain() 518 device_->CreateBlendState(&desc, &blender); in create_swapchain() 563 const auto hr = device_->CreateBuffer(&desc, &srd, &buffer); in create_quad() 575 auto hr = device_->OpenSharedResource(handle, __uuidof(ID3D11Texture2D), in open_shared_texture() [all …]
|
/third_party/vk-gl-cts/external/amber/src/src/dawn/ |
D | engine_dawn.cc | 780 if (device_) in Initialize() 789 device_ = dawn_config->device; in Initialize() 795 if (!device_) { in CreatePipeline() 809 auto shader = device_->CreateShaderModule(&descriptor); in CreatePipeline() 899 result = helper.CreateRenderPipelineDescriptor(*render_pipeline, *device_, in DoClear() 904 *render_pipeline, *device_, texture_views_, ::dawn::LoadOp::Clear); in DoClear() 910 ::dawn::CommandEncoder encoder = device_->CreateCommandEncoder(); in DoClear() 916 ::dawn::Queue queue = device_->CreateQueue(); in DoClear() 919 result = MapDeviceTextureToHostBuffer(*render_pipeline, *device_); in DoClear() 1269 *device_, indexData, sizeof(indexData), ::dawn::BufferUsage::Index); in DoDrawRect() [all …]
|
/third_party/gstreamer/gstplugins_bad/sys/d3d11/ |
D | gstd3d11screencapture.cpp | 234 : device_(nullptr) in D3D11DesktopDupObject() 250 gst_clear_object (&device_); in ~D3D11DesktopDupObject() 293 device_ = (GstD3D11Device *) gst_object_ref (device); in Init() 336 if (!gst_d3d11_result (hr, device_)) { in Capture() 546 if (device == device_) { in CopyToTexture() 557 if (!gst_d3d11_result (hr, device_)) in CopyToTexture() 561 if (!gst_d3d11_result (hr, device_)) in CopyToTexture() 778 if (!gst_d3d11_result (hr, device_)) { in GetMouse() 780 gst_d3d11_device_get_device_handle (device_); in GetMouse() 808 ID3D11Device *device_handle = gst_d3d11_device_get_device_handle (device_); in GetFrame() [all …]
|