Lines Matching defs:device

56    struct dzn_device *device = container_of(image->vk.base.device, struct dzn_device, vk);
62 vk_free2(&device->vk.alloc, pAllocator, image);
66 dzn_image_create(struct dzn_device *device,
72 vk_zalloc2(&device->vk.alloc, pAllocator, sizeof(*image), 8,
75 container_of(device->vk.physical, struct dzn_physical_device, vk);
78 return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
90 return dzn_image_from_external(device, pCreateInfo, create_info,
98 return dzn_image_from_swapchain(device, pCreateInfo, swapchain_info,
102 vk_image_init(&device->vk, &image->vk, pCreateInfo);
143 ID3D12Device1_GetCopyableFootprints(device->dev, &tmp_desc, 0, 1, 0, &footprint, NULL, NULL, &size);
594 dzn_image_formats_are_compatible(const struct dzn_device *device,
600 container_of(device->vk.physical, struct dzn_physical_device, vk);
641 dzn_CreateImage(VkDevice device,
646 return dzn_image_create(dzn_device_from_handle(device),
651 dzn_DestroyImage(VkDevice device, VkImage image,
658 dzn_swapchain_get_image(struct dzn_device *device,
680 VK_FROM_HANDLE(dzn_device, device, dev);
694 dzn_swapchain_get_image(device,
716 if (FAILED(ID3D12Device1_CreatePlacedResource(device->dev, mem->heap,
723 return vk_error(device, VK_ERROR_OUT_OF_DEVICE_MEMORY);
736 VK_FROM_HANDLE(dzn_device, device, _device);
739 container_of(device->vk.physical, struct dzn_physical_device, vk);
762 D3D12_RESOURCE_ALLOCATION_INFO info = dzn_ID3D12Device2_GetResourceAllocationInfo(device->dev, 0, 1, &image->desc);
790 VK_FROM_HANDLE(dzn_device, device, _device);
808 ID3D12Device1_GetCopyableFootprints(device->dev, &image->desc,
1139 dzn_image_view_init(struct dzn_device *device,
1148 vk_image_view_init(&device->vk, &iview->vk, false, pCreateInfo);
1193 struct dzn_device *device = container_of(iview->vk.base.device, struct dzn_device, vk);
1196 vk_free2(&device->vk.alloc, pAllocator, iview);
1200 dzn_image_view_create(struct dzn_device *device,
1206 vk_zalloc2(&device->vk.alloc, pAllocator, sizeof(*iview), 8,
1209 return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
1211 dzn_image_view_init(device, iview, pCreateInfo);
1218 dzn_CreateImageView(VkDevice device,
1223 return dzn_image_view_create(dzn_device_from_handle(device), pCreateInfo,
1228 dzn_DestroyImageView(VkDevice device,
1242 struct dzn_device *device = container_of(bview->base.device, struct dzn_device, vk);
1245 vk_free2(&device->vk.alloc, pAllocator, bview);
1249 dzn_buffer_view_create(struct dzn_device *device,
1257 vk_zalloc2(&device->vk.alloc, pAllocator, sizeof(*bview), 8,
1260 return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
1262 vk_object_base_init(&device->vk, &bview->base, VK_OBJECT_TYPE_BUFFER_VIEW);
1304 dzn_CreateBufferView(VkDevice device,
1309 return dzn_buffer_view_create(dzn_device_from_handle(device),
1314 dzn_DestroyBufferView(VkDevice device,