• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 Google LLC
3  * SPDX-License-Identifier: MIT
4  */
5 
6 #ifndef VKR_DEVICE_MEMORY_H
7 #define VKR_DEVICE_MEMORY_H
8 
9 #include "vkr_common.h"
10 
11 struct vkr_device_memory {
12    struct vkr_object base;
13 
14    VkDevice device;
15    uint32_t property_flags;
16    uint32_t valid_fd_types;
17 
18    bool exported;
19    uint32_t exported_res_id;
20    struct list_head exported_head;
21 };
22 VKR_DEFINE_OBJECT_CAST(device_memory, VK_OBJECT_TYPE_DEVICE_MEMORY, VkDeviceMemory)
23 
24 void
25 vkr_context_init_device_memory_dispatch(struct vkr_context *ctx);
26 
27 #endif /* VKR_DEVICE_MEMORY_H */
28