/third_party/flutter/skia/src/gpu/vk/ |
D | GrVkSampler.cpp | 41 VkSamplerCreateInfo createInfo; in Create() local 42 memset(&createInfo, 0, sizeof(VkSamplerCreateInfo)); in Create() 43 createInfo.sType = VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO; in Create() 44 createInfo.pNext = nullptr; in Create() 45 createInfo.flags = 0; in Create() 46 createInfo.magFilter = vkMagFilterModes[static_cast<int>(samplerState.filter())]; in Create() 47 createInfo.minFilter = vkMinFilterModes[static_cast<int>(samplerState.filter())]; in Create() 48 createInfo.mipmapMode = VK_SAMPLER_MIPMAP_MODE_LINEAR; in Create() 49 createInfo.addressModeU = wrap_mode_to_vk_sampler_address(samplerState.wrapModeX()); in Create() 50 createInfo.addressModeV = wrap_mode_to_vk_sampler_address(samplerState.wrapModeY()); in Create() [all …]
|
D | GrVkFramebuffer.cpp | 30 VkFramebufferCreateInfo createInfo; in Create() local 31 memset(&createInfo, 0, sizeof(VkFramebufferCreateInfo)); in Create() 32 createInfo.sType = VK_STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO; in Create() 33 createInfo.pNext = nullptr; in Create() 34 createInfo.flags = 0; in Create() 35 createInfo.renderPass = renderPass->vkRenderPass(); in Create() 36 createInfo.attachmentCount = numAttachments; in Create() 37 createInfo.pAttachments = attachments; in Create() 38 createInfo.width = width; in Create() 39 createInfo.height = height; in Create() [all …]
|
D | GrVkDescriptorPool.cpp | 23 VkDescriptorPoolCreateInfo createInfo; in GrVkDescriptorPool() local 24 memset(&createInfo, 0, sizeof(VkDescriptorPoolCreateInfo)); in GrVkDescriptorPool() 25 createInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO; in GrVkDescriptorPool() 26 createInfo.pNext = nullptr; in GrVkDescriptorPool() 27 createInfo.flags = 0; in GrVkDescriptorPool() 29 createInfo.maxSets = count; in GrVkDescriptorPool() 30 createInfo.poolSizeCount = 1; in GrVkDescriptorPool() 31 createInfo.pPoolSizes = &poolSize; in GrVkDescriptorPool() 34 &createInfo, in GrVkDescriptorPool()
|
/third_party/skia/src/gpu/vk/ |
D | GrVkSampler.cpp | 52 VkSamplerCreateInfo createInfo; in Create() local 53 memset(&createInfo, 0, sizeof(VkSamplerCreateInfo)); in Create() 54 createInfo.sType = VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO; in Create() 55 createInfo.pNext = nullptr; in Create() 56 createInfo.flags = 0; in Create() 57 createInfo.magFilter = vkMagFilterModes[static_cast<int>(samplerState.filter())]; in Create() 58 createInfo.minFilter = vkMinFilterModes[static_cast<int>(samplerState.filter())]; in Create() 59 createInfo.mipmapMode = mipmap_mode_to_vk_sampler_mipmap_mode(samplerState.mipmapMode()); in Create() 60 createInfo.addressModeU = wrap_mode_to_vk_sampler_address(samplerState.wrapModeX()); in Create() 61 createInfo.addressModeV = wrap_mode_to_vk_sampler_address(samplerState.wrapModeY()); in Create() [all …]
|
D | GrVkFramebuffer.cpp | 38 VkFramebufferCreateInfo createInfo; in Make() local 39 memset(&createInfo, 0, sizeof(VkFramebufferCreateInfo)); in Make() 40 createInfo.sType = VK_STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO; in Make() 41 createInfo.pNext = nullptr; in Make() 42 createInfo.flags = 0; in Make() 43 createInfo.renderPass = compatibleRenderPass->vkRenderPass(); in Make() 44 createInfo.attachmentCount = numAttachments; in Make() 45 createInfo.pAttachments = attachments; in Make() 46 createInfo.width = dimensions.width(); in Make() 47 createInfo.height = dimensions.height(); in Make() [all …]
|
D | GrVkDescriptorPool.cpp | 21 VkDescriptorPoolCreateInfo createInfo; in Create() local 22 memset(&createInfo, 0, sizeof(VkDescriptorPoolCreateInfo)); in Create() 23 createInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO; in Create() 24 createInfo.pNext = nullptr; in Create() 25 createInfo.flags = 0; in Create() 27 createInfo.maxSets = count; in Create() 28 createInfo.poolSizeCount = 1; in Create() 29 createInfo.pPoolSizes = &poolSize; in Create() 33 GR_VK_CALL_RESULT(gpu, result, CreateDescriptorPool(gpu->device(), &createInfo, nullptr, in Create()
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/ |
D | SamplerVk.cpp | 67 VkSamplerCreateInfo createInfo = {}; in Initialize() local 68 createInfo.sType = VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO; in Initialize() 69 createInfo.pNext = nullptr; in Initialize() 70 createInfo.flags = 0; in Initialize() 71 createInfo.magFilter = VulkanSamplerFilter(descriptor->magFilter); in Initialize() 72 createInfo.minFilter = VulkanSamplerFilter(descriptor->minFilter); in Initialize() 73 createInfo.mipmapMode = VulkanMipMapMode(descriptor->mipmapFilter); in Initialize() 74 createInfo.addressModeU = VulkanSamplerAddressMode(descriptor->addressModeU); in Initialize() 75 createInfo.addressModeV = VulkanSamplerAddressMode(descriptor->addressModeV); in Initialize() 76 createInfo.addressModeW = VulkanSamplerAddressMode(descriptor->addressModeW); in Initialize() [all …]
|
D | NativeSwapChainImplVk.cpp | 116 VkSwapchainCreateInfoKHR createInfo; in Configure() local 117 createInfo.sType = VK_STRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHR; in Configure() 118 createInfo.pNext = nullptr; in Configure() 119 createInfo.flags = 0; in Configure() 120 createInfo.surface = mSurface; in Configure() 121 createInfo.minImageCount = mConfig.minImageCount; in Configure() 122 createInfo.imageFormat = mConfig.nativeFormat; in Configure() 123 createInfo.imageColorSpace = mConfig.colorSpace; in Configure() 124 createInfo.imageExtent.width = width; in Configure() 125 createInfo.imageExtent.height = height; in Configure() [all …]
|
D | SwapChainVk.cpp | 103 VkMetalSurfaceCreateInfoEXT createInfo; in CreateVulkanSurface() local 104 createInfo.sType = VK_STRUCTURE_TYPE_METAL_SURFACE_CREATE_INFO_EXT; in CreateVulkanSurface() 105 createInfo.pNext = nullptr; in CreateVulkanSurface() 106 createInfo.flags = 0; in CreateVulkanSurface() 107 createInfo.pLayer = surface->GetMetalLayer(); in CreateVulkanSurface() 111 fn.CreateMetalSurfaceEXT(instance, &createInfo, nullptr, &*vkSurface), in CreateVulkanSurface() 121 VkWin32SurfaceCreateInfoKHR createInfo; in CreateVulkanSurface() local 122 createInfo.sType = VK_STRUCTURE_TYPE_WIN32_SURFACE_CREATE_INFO_KHR; in CreateVulkanSurface() 123 createInfo.pNext = nullptr; in CreateVulkanSurface() 124 createInfo.flags = 0; in CreateVulkanSurface() [all …]
|
D | ComputePipelineVk.cpp | 35 VkComputePipelineCreateInfo createInfo; in Initialize() local 36 createInfo.sType = VK_STRUCTURE_TYPE_COMPUTE_PIPELINE_CREATE_INFO; in Initialize() 37 createInfo.pNext = nullptr; in Initialize() 38 createInfo.flags = 0; in Initialize() 39 createInfo.layout = ToBackend(GetLayout())->GetHandle(); in Initialize() 40 createInfo.basePipelineHandle = ::VK_NULL_HANDLE; in Initialize() 41 createInfo.basePipelineIndex = -1; in Initialize() 43 createInfo.stage.sType = VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO; in Initialize() 44 createInfo.stage.pNext = nullptr; in Initialize() 45 createInfo.stage.flags = 0; in Initialize() [all …]
|
D | StagingBufferVk.cpp | 30 VkBufferCreateInfo createInfo; in Initialize() local 31 createInfo.sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO; in Initialize() 32 createInfo.pNext = nullptr; in Initialize() 33 createInfo.flags = 0; in Initialize() 34 createInfo.size = GetSize(); in Initialize() 35 createInfo.usage = VK_BUFFER_USAGE_TRANSFER_SRC_BIT; in Initialize() 36 createInfo.sharingMode = VK_SHARING_MODE_EXCLUSIVE; in Initialize() 37 createInfo.queueFamilyIndexCount = 0; in Initialize() 38 createInfo.pQueueFamilyIndices = 0; in Initialize() 41 mDevice->fn.CreateBuffer(mDevice->GetVkDevice(), &createInfo, nullptr, &*mBuffer), in Initialize()
|
D | BackendVk.cpp | 325 VkInstanceCreateInfo createInfo; in CreateVkInstance() local 326 createInfo.sType = VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO; in CreateVkInstance() 327 createInfo.pNext = nullptr; in CreateVkInstance() 328 createInfo.flags = 0; in CreateVkInstance() 329 createInfo.pApplicationInfo = &appInfo; in CreateVkInstance() 330 createInfo.enabledLayerCount = static_cast<uint32_t>(layerNames.size()); in CreateVkInstance() 331 createInfo.ppEnabledLayerNames = layerNames.data(); in CreateVkInstance() 332 createInfo.enabledExtensionCount = static_cast<uint32_t>(extensionNames.size()); in CreateVkInstance() 333 createInfo.ppEnabledExtensionNames = extensionNames.data(); in CreateVkInstance() 335 PNextChainBuilder createInfoChain(&createInfo); in CreateVkInstance() [all …]
|
D | PipelineLayoutVk.cpp | 46 VkPipelineLayoutCreateInfo createInfo; in Initialize() local 47 createInfo.sType = VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO; in Initialize() 48 createInfo.pNext = nullptr; in Initialize() 49 createInfo.flags = 0; in Initialize() 50 createInfo.setLayoutCount = numSetLayouts; in Initialize() 51 createInfo.pSetLayouts = AsVkArray(setLayouts.data()); in Initialize() 52 createInfo.pushConstantRangeCount = 0; in Initialize() 53 createInfo.pPushConstantRanges = nullptr; in Initialize() 57 device->fn.CreatePipelineLayout(device->GetVkDevice(), &createInfo, nullptr, &*mHandle), in Initialize()
|
D | RenderPipelineVk.cpp | 525 VkGraphicsPipelineCreateInfo createInfo; in Initialize() local 526 createInfo.sType = VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO; in Initialize() 527 createInfo.pNext = nullptr; in Initialize() 528 createInfo.flags = 0; in Initialize() 529 createInfo.stageCount = stageCount; in Initialize() 530 createInfo.pStages = shaderStages.data(); in Initialize() 531 createInfo.pVertexInputState = &vertexInputCreateInfo; in Initialize() 532 createInfo.pInputAssemblyState = &inputAssembly; in Initialize() 533 createInfo.pTessellationState = nullptr; in Initialize() 534 createInfo.pViewportState = &viewport; in Initialize() [all …]
|
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/vulkan/ |
D | SamplerVk.cpp | 62 VkSamplerCreateInfo createInfo = {}; in Sampler() local 63 createInfo.sType = VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO; in Sampler() 64 createInfo.pNext = nullptr; in Sampler() 65 createInfo.flags = 0; in Sampler() 66 createInfo.magFilter = VulkanSamplerFilter(descriptor->magFilter); in Sampler() 67 createInfo.minFilter = VulkanSamplerFilter(descriptor->minFilter); in Sampler() 68 createInfo.mipmapMode = VulkanMipMapMode(descriptor->mipmapFilter); in Sampler() 69 createInfo.addressModeU = VulkanSamplerAddressMode(descriptor->addressModeU); in Sampler() 70 createInfo.addressModeV = VulkanSamplerAddressMode(descriptor->addressModeV); in Sampler() 71 createInfo.addressModeW = VulkanSamplerAddressMode(descriptor->addressModeW); in Sampler() [all …]
|
D | NativeSwapChainImplVk.cpp | 84 VkSwapchainCreateInfoKHR createInfo; in Configure() local 85 createInfo.sType = VK_STRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHR; in Configure() 86 createInfo.pNext = nullptr; in Configure() 87 createInfo.flags = 0; in Configure() 88 createInfo.surface = mSurface; in Configure() 89 createInfo.minImageCount = mConfig.minImageCount; in Configure() 90 createInfo.imageFormat = mConfig.nativeFormat; in Configure() 91 createInfo.imageColorSpace = mConfig.colorSpace; in Configure() 92 createInfo.imageExtent.width = width; in Configure() 93 createInfo.imageExtent.height = height; in Configure() [all …]
|
D | ComputePipelineVk.cpp | 26 VkComputePipelineCreateInfo createInfo; in ComputePipeline() local 27 createInfo.sType = VK_STRUCTURE_TYPE_COMPUTE_PIPELINE_CREATE_INFO; in ComputePipeline() 28 createInfo.pNext = nullptr; in ComputePipeline() 29 createInfo.flags = 0; in ComputePipeline() 30 createInfo.layout = ToBackend(descriptor->layout)->GetHandle(); in ComputePipeline() 31 createInfo.basePipelineHandle = VK_NULL_HANDLE; in ComputePipeline() 32 createInfo.basePipelineIndex = -1; in ComputePipeline() 34 createInfo.stage.sType = VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO; in ComputePipeline() 35 createInfo.stage.pNext = nullptr; in ComputePipeline() 36 createInfo.stage.flags = 0; in ComputePipeline() [all …]
|
D | BackendVk.cpp | 171 VkInstanceCreateInfo createInfo; in CreateInstance() local 172 createInfo.sType = VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO; in CreateInstance() 173 createInfo.pNext = nullptr; in CreateInstance() 174 createInfo.flags = 0; in CreateInstance() 175 createInfo.pApplicationInfo = &appInfo; in CreateInstance() 176 createInfo.enabledLayerCount = static_cast<uint32_t>(layersToRequest.size()); in CreateInstance() 177 createInfo.ppEnabledLayerNames = layersToRequest.data(); in CreateInstance() 178 createInfo.enabledExtensionCount = static_cast<uint32_t>(extensionsToRequest.size()); in CreateInstance() 179 createInfo.ppEnabledExtensionNames = extensionsToRequest.data(); in CreateInstance() 181 DAWN_TRY(CheckVkSuccess(mFunctions.CreateInstance(&createInfo, nullptr, &mInstance), in CreateInstance() [all …]
|
D | TextureVk.cpp | 386 VkImageCreateInfo createInfo; in Texture() local 387 createInfo.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO; in Texture() 388 createInfo.pNext = nullptr; in Texture() 389 createInfo.flags = 0; in Texture() 390 createInfo.imageType = VulkanImageType(GetDimension()); in Texture() 391 createInfo.format = VulkanImageFormat(GetFormat().format); in Texture() 392 createInfo.extent = VulkanExtent3D(GetSize()); in Texture() 393 createInfo.mipLevels = GetNumMipLevels(); in Texture() 394 createInfo.arrayLayers = GetArrayLayers(); in Texture() 395 createInfo.samples = VulkanSampleCount(GetSampleCount()); in Texture() [all …]
|
D | StagingBufferVk.cpp | 27 VkBufferCreateInfo createInfo; in Initialize() local 28 createInfo.sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO; in Initialize() 29 createInfo.pNext = nullptr; in Initialize() 30 createInfo.flags = 0; in Initialize() 31 createInfo.size = GetSize(); in Initialize() 32 createInfo.usage = VK_BUFFER_USAGE_TRANSFER_SRC_BIT; in Initialize() 33 createInfo.sharingMode = VK_SHARING_MODE_EXCLUSIVE; in Initialize() 34 createInfo.queueFamilyIndexCount = 0; in Initialize() 35 createInfo.pQueueFamilyIndices = 0; in Initialize() 37 if (mDevice->fn.CreateBuffer(mDevice->GetVkDevice(), &createInfo, nullptr, &mBuffer) != in Initialize()
|
D | PipelineLayoutVk.cpp | 37 VkPipelineLayoutCreateInfo createInfo; in PipelineLayout() local 38 createInfo.sType = VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO; in PipelineLayout() 39 createInfo.pNext = nullptr; in PipelineLayout() 40 createInfo.flags = 0; in PipelineLayout() 41 createInfo.setLayoutCount = numSetLayouts; in PipelineLayout() 42 createInfo.pSetLayouts = setLayouts.data(); in PipelineLayout() 43 createInfo.pushConstantRangeCount = 0; in PipelineLayout() 44 createInfo.pPushConstantRanges = nullptr; in PipelineLayout() 46 if (device->fn.CreatePipelineLayout(device->GetVkDevice(), &createInfo, nullptr, in PipelineLayout()
|
D | DeviceVk.cpp | 382 VkDeviceCreateInfo createInfo; in CreateDevice() local 383 createInfo.sType = VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO; in CreateDevice() 384 createInfo.pNext = nullptr; in CreateDevice() 385 createInfo.flags = 0; in CreateDevice() 386 createInfo.queueCreateInfoCount = static_cast<uint32_t>(queuesToRequest.size()); in CreateDevice() 387 createInfo.pQueueCreateInfos = queuesToRequest.data(); in CreateDevice() 388 createInfo.enabledLayerCount = static_cast<uint32_t>(layersToRequest.size()); in CreateDevice() 389 createInfo.ppEnabledLayerNames = layersToRequest.data(); in CreateDevice() 390 createInfo.enabledExtensionCount = static_cast<uint32_t>(extensionsToRequest.size()); in CreateDevice() 391 createInfo.ppEnabledExtensionNames = extensionsToRequest.data(); in CreateDevice() [all …]
|
D | ShaderModuleVk.cpp | 31 VkShaderModuleCreateInfo createInfo; in ShaderModule() local 32 createInfo.sType = VK_STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO; in ShaderModule() 33 createInfo.pNext = nullptr; in ShaderModule() 34 createInfo.flags = 0; in ShaderModule() 35 createInfo.codeSize = descriptor->codeSize * sizeof(uint32_t); in ShaderModule() 36 createInfo.pCode = descriptor->code; in ShaderModule() 38 if (device->fn.CreateShaderModule(device->GetVkDevice(), &createInfo, nullptr, &mHandle) != in ShaderModule()
|
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/ |
D | vk_wrapper.h | 148 VkResult init(VkDevice device, const VkCommandPoolCreateInfo &createInfo); 158 const VkGraphicsPipelineCreateInfo &createInfo, 161 const VkComputePipelineCreateInfo &createInfo, 182 VkResult init(VkDevice device, const VkCommandBufferAllocateInfo &createInfo); 362 VkResult init(VkDevice device, const VkImageCreateInfo &createInfo); 380 VkResult init(VkDevice device, const VkImageViewCreateInfo &createInfo); 401 VkResult init(VkDevice device, const VkFramebufferCreateInfo &createInfo); 425 VkResult init(VkDevice device, const VkRenderPassCreateInfo &createInfo); 441 VkResult init(VkDevice device, const VkBufferCreateInfo &createInfo); 452 VkResult init(VkDevice device, const VkBufferViewCreateInfo &createInfo); [all …]
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/ |
D | vk_wrapper.h | 145 VkResult init(VkDevice device, const VkCommandPoolCreateInfo &createInfo); 155 const VkGraphicsPipelineCreateInfo &createInfo, 158 const VkComputePipelineCreateInfo &createInfo, 179 VkResult init(VkDevice device, const VkCommandBufferAllocateInfo &createInfo); 385 VkResult init(VkDevice device, const VkImageCreateInfo &createInfo); 404 VkResult init(VkDevice device, const VkImageViewCreateInfo &createInfo); 414 VkResult init(VkDevice device, const VkSemaphoreCreateInfo &createInfo); 427 VkResult init(VkDevice device, const VkFramebufferCreateInfo &createInfo); 484 VkResult init(VkDevice device, const VkRenderPassCreateInfo &createInfo); 485 VkResult init2(VkDevice device, const VkRenderPassCreateInfo2 &createInfo); [all …]
|