Lines Matching refs:pCreateInfo
31 const VkImageCreateInfo *pCreateInfo,
38 assert(pCreateInfo->sType == VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO);
40 image = vk_image_create(&device->vk, pCreateInfo, alloc, sizeof(*image));
51 switch (pCreateInfo->imageType) {
53 template.target = pCreateInfo->arrayLayers > 1 ? PIPE_TEXTURE_1D_ARRAY : PIPE_TEXTURE_1D;
57 template.target = pCreateInfo->arrayLayers > 1 ? PIPE_TEXTURE_2D_ARRAY : PIPE_TEXTURE_2D;
64 template.format = lvp_vk_format_to_pipe_format(pCreateInfo->format);
68 if (pCreateInfo->usage & VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT) {
71 if (pCreateInfo->samples > 1)
75 if (pCreateInfo->usage & VK_IMAGE_USAGE_TRANSFER_DST_BIT) {
82 if (pCreateInfo->usage & VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT)
85 if (pCreateInfo->usage & (VK_IMAGE_USAGE_SAMPLED_BIT | VK_IMAGE_USAGE_TRANSFER_SRC_BIT |
89 if (pCreateInfo->usage & VK_IMAGE_USAGE_STORAGE_BIT)
92 template.width0 = pCreateInfo->extent.width;
93 template.height0 = pCreateInfo->extent.height;
94 template.depth0 = pCreateInfo->extent.depth;
95 template.array_size = pCreateInfo->arrayLayers;
96 template.last_level = pCreateInfo->mipLevels - 1;
97 template.nr_samples = pCreateInfo->samples;
98 template.nr_storage_samples = pCreateInfo->samples;
120 const VkImageCreateInfo *pCreateInfo,
128 assert(swapchain_image->vk.image_type == pCreateInfo->imageType);
131 local_create_info = *pCreateInfo;
145 const VkImageCreateInfo *pCreateInfo,
150 vk_find_struct_const(pCreateInfo->pNext, IMAGE_SWAPCHAIN_CREATE_INFO_KHR);
152 return lvp_image_from_swapchain(device, pCreateInfo, swapchain_info,
154 return lvp_image_create(device, pCreateInfo, pAllocator,
173 const VkImageViewCreateInfo *pCreateInfo,
178 LVP_FROM_HANDLE(lvp_image, image, pCreateInfo->image);
181 view = vk_image_view_create(&device->vk, false, pCreateInfo,
272 const VkBufferCreateInfo* pCreateInfo,
279 assert(pCreateInfo->sType == VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO);
282 if (pCreateInfo->size > UINT32_MAX)
291 buffer->size = pCreateInfo->size;
292 buffer->usage = pCreateInfo->usage;
299 if (pCreateInfo->usage & VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT)
370 const VkBufferViewCreateInfo *pCreateInfo,
375 LVP_FROM_HANDLE(lvp_buffer, buffer, pCreateInfo->buffer);
385 view->format = pCreateInfo->format;
386 view->pformat = lvp_vk_format_to_pipe_format(pCreateInfo->format);
387 view->offset = pCreateInfo->offset;
388 view->range = pCreateInfo->range;