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

[#96] Added some documentation to complete material and fixed some other parts

parent f91a59d3
No related branches found
No related tags found
1 merge request!97Resolve "Dokumentation vervollständigen"
Pipeline #27507 passed
......@@ -135,7 +135,7 @@ namespace vkcv
/**
* Record a memory barrier for a buffer, synchronizing subsequent accesses to buffer data
*
* @param handle #BufferHandle of the buffer
* @param handle BufferHandle of the buffer
* @param cmdBuffer Vulkan command buffer to record the barrier into
*/
void recordBufferMemoryBarrier(
......
......@@ -84,7 +84,7 @@ namespace vkcv
/**
* sets up swapchain images
* @param swapchainHandles of swapchain
* @param handle Handle of swapchain
*/
void setSwapchainImages(SwapchainHandle handle);
......@@ -111,7 +111,7 @@ namespace vkcv
/**
* Copy assignment operator of #Core is deleted!
*
* @param other Other instance of #Context
* @param other Other instance of Context
* @return Reference to itself
*/
Core & operator=(const Core &other) = delete;
......@@ -119,11 +119,16 @@ namespace vkcv
/**
* Move assignment operator of #Core uses default behavior!
*
* @param other Other instance of #Context
* @param other Other instance of Context
* @return Reference to itself
*/
Core & operator=(Core &&other) = delete;
/**
* Returns the context of a Core instance.
*
* @return Current Context
*/
[[nodiscard]]
const Context &getContext() const;
......@@ -170,12 +175,11 @@ namespace vkcv
ComputePipelineHandle createComputePipeline(const ComputePipelineConfig &config);
/**
* Creates a basic vulkan render pass using @p config from the render pass config class and returns it using the @p handle.
* Creates a basic vulkan render pass using @p config from the render pass config class and returns it.
* Fixed Functions for pipeline are set with standard values.
*
* @param config a render pass config object from the render pass config class
* @param handle a handle to return the created vulkan handle
* @return True if render pass creation was successful, False if not
* @return A handle to represent the created pass
*/
[[nodiscard]]
PassHandle createPass(const PassConfig &config);
......
......@@ -80,12 +80,36 @@ namespace vkcv::material {
* Default constructor to create an invalid material instance.
*/
Material();
/**
* Destructor to release handles and resources of a material instance.
*/
~Material() = default;
/**
* Copy-constructor to copy a given material instance.
* @param other Other material
*/
Material(const Material& other) = default;
/**
* Move-constructor to move a given material instance.
* @param other Other material
*/
Material(Material&& other) = default;
/**
* Copy-operator to copy a given material instance.
* @param other Other material
* @return Reference to the material
*/
Material& operator=(const Material& other) = default;
/**
* Move-operator to move a given material instance.
* @param other Other material
* @return Reference to the material
*/
Material& operator=(Material&& other) = default;
/**
......
......@@ -17,6 +17,9 @@ namespace vkcv {
friend class Core;
private:
/**
* vector of all managed windows
*/
std::vector<Window*> m_windows;
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment