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

Added doxygen comments to the context

parent 0809cf99
No related branches found
No related tags found
1 merge request!97Resolve "Dokumentation vervollständigen"
......@@ -29,24 +29,66 @@ namespace vkcv
Context & operator=(const Context &other) = delete; // copy assignment
Context & operator=(Context &&other) noexcept; // move assignment
/**
* @brief Returns the vulkan instance of the context.
*
* @return Vulkan instance
*/
[[nodiscard]]
const vk::Instance &getInstance() const;
/**
* @brief Returns the vulkan physical device of the context.
*
* @return Vulkan physical device
*/
[[nodiscard]]
const vk::PhysicalDevice &getPhysicalDevice() const;
/**
* @brief Returns the vulkan device of the context.
*
* @return Vulkan device
*/
[[nodiscard]]
const vk::Device &getDevice() const;
/**
* @brief Returns the feature manager of the context.
*
* @return Feature manager
*/
[[nodiscard]]
const FeatureManager& getFeatureManager() const;
/**
* @brief Returns the queue manager of the context.
*
* @return Queue manager
*/
[[nodiscard]]
const QueueManager& getQueueManager() const;
/**
* @brief Returns the VMA allocator of the context.
*
* @return VMA allocator
*/
[[nodiscard]]
const vma::Allocator& getAllocator() const;
/**
* @brief Creates a context for a given application with
* a specific name, version, queue requirements, features and
* required instance extensions.
*
* @param applicationName Application name
* @param applicationVersion Application version
* @param queueFlags Queue flags
* @param features Features
* @param instanceExtensions Instance extensions
* @return New context
*/
static Context create(const char *applicationName,
uint32_t applicationVersion,
const std::vector<vk::QueueFlagBits>& queueFlags,
......@@ -55,14 +97,19 @@ namespace vkcv
private:
/**
* Constructor of #Context requires an @p instance, a @p physicalDevice and a @p device.
* @brief Constructor of #Context requires an @p instance,
* a @p physicalDevice and a @p device.
*
* @param instance Vulkan-Instance
* @param physicalDevice Vulkan-PhysicalDevice
* @param device Vulkan-Device
*/
Context(vk::Instance instance, vk::PhysicalDevice physicalDevice, vk::Device device,
FeatureManager&& featureManager, QueueManager&& queueManager, vma::Allocator&& allocator) noexcept;
Context(vk::Instance instance,
vk::PhysicalDevice physicalDevice,
vk::Device device,
FeatureManager &&featureManager,
QueueManager &&queueManager,
vma::Allocator &&allocator) noexcept;
vk::Instance m_Instance;
vk::PhysicalDevice m_PhysicalDevice;
......
......@@ -320,8 +320,6 @@ namespace vkcv
*/
DescriptorSetLayout getDescriptorSetLayout(const DescriptorSetLayoutHandle handle) const;
// TODO: existsDescriptorSetLayout function that checks and returns fitting layout upon existence.
/**
* @brief Creates a new descriptor set
*
......
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