aboutsummaryrefslogtreecommitdiffstatsci
path: root/include
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-11-30 16:40:59 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-11-30 16:40:59 +0100
commitb15e2e52f6eb74e72f31391dbcf007a9e5ce3815 (patch)
tree88e754ed1010751d612e229351510fb765d7b705 /include
parent7dfff1a2e601e142583c122c9f716578d8e85039 (diff)
store VkhApp in VkhDevice
Diffstat (limited to 'include')
-rw-r--r--include/vkh.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/vkh.h b/include/vkh.h
index b559dbe..4b97df9 100644
--- a/include/vkh.h
+++ b/include/vkh.h
@@ -108,6 +108,12 @@ void vkh_device_destroy (VkhDevice dev);
void vkh_device_init_debug_utils (VkhDevice dev);
VkDevice vkh_device_get_vkdev(VkhDevice dev);
VkPhysicalDevice vkh_device_get_phy (VkhDevice dev);
+/**
+ * @brief Retrieve @ref VkhApp instance used to create this VkhDevice.
+ * @param dev
+ * @return the VkhApp instace used to create the VkhDevice.
+ */
+VkhApp vkh_device_get_app (VkhDevice dev);
void vkh_device_set_object_name (VkhDevice dev, VkObjectType objectType, uint64_t handle, const char *name);