Skip to content
Snippets Groups Projects
Verified Commit 593a404a authored by Tobias Frisch's avatar Tobias Frisch
Browse files

Added doxygen comments to sync resources

parent daebb5ba
No related branches found
No related tags found
1 merge request!97Resolve "Dokumentation vervollständigen"
...@@ -15,9 +15,41 @@ namespace vkcv { ...@@ -15,9 +15,41 @@ namespace vkcv {
vk::Fence presentFinished; vk::Fence presentFinished;
}; };
SyncResources createSyncResources(const vk::Device &device); /**
void destroySyncResources(const vk::Device &device, const SyncResources &resources); * @brief Creates new synchronization resources for drawing
vk::Fence createFence(const vk::Device &device); * and presenting with a swapchain.
void waitForFence(const vk::Device& device, const vk::Fence& fence); *
* @param[in,out] device Vulkan-Device
* @return New created synchronization resources
*/
SyncResources createSyncResources(const vk::Device &device);
/**
* @brief Destroys the synchronization resources with a
* given device.
*
* @param[in,out] device Vulkan-Device
* @param[in,out] resources Synchronizazion resources
*/
void destroySyncResources(const vk::Device &device,
const SyncResources &resources);
/**
* @brief Creates a new fence with a given device and
* returns it.
*
* @param[in,out] device Vulkan-Device
* @return New created fence
*/
vk::Fence createFence(const vk::Device &device);
/**
* @brief Calls a given device to wait for a specific fence.
*
* @param[in,out] device Vulkan-Device
* @param[in] fence Vulkan-Fence
*/
void waitForFence(const vk::Device& device,
const vk::Fence& fence);
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment