Skip to content
Snippets Groups Projects
Commit b48f6de4 authored by Alexander Gauggel's avatar Alexander Gauggel
Browse files

[#96] Comment public Image functions

parent 165dcc32
No related branches found
No related tags found
1 merge request!97Resolve "Dokumentation vervollständigen"
Pipeline #27511 passed
......@@ -18,28 +18,69 @@ namespace vkcv {
class Image {
friend class Core;
public:
/**
* @return Vulkan format of the image
*/
[[nodiscard]]
vk::Format getFormat() const;
/**
* @return Width of the image
*/
[[nodiscard]]
uint32_t getWidth() const;
/**
* @return Height of the image
*/
[[nodiscard]]
uint32_t getHeight() const;
/**
* @return Depth of the image
*/
[[nodiscard]]
uint32_t getDepth() const;
/**
* @return Handle of the image to be used with the #Core
*/
[[nodiscard]]
const vkcv::ImageHandle& getHandle() const;
/**
* @return Number of mip levels of the image
*/
[[nodiscard]]
uint32_t getMipCount() const;
/**
* @brief Switch the image layout, returns after operation is finished
*
* @param newLayout Layout that image is switched to
*/
void switchLayout(vk::ImageLayout newLayout);
/**
* @brief Fill the image with data
*
* @param data Pointer to the source data
* @param size Lower limit of the data size to copy in bytes,
* the actual number of copied bytes is min(size, imageDataSize)
*/
void fill(const void* data, size_t size = SIZE_MAX);
/**
* @brief Generates the entire mip chain from mip 0, returns after operation is finished
*/
void generateMipChainImmediate();
/**
* @brief Record mip chain generation to command stream, mip 0 is used as source
*
* @param cmdStream Command stream that the commands are recorded into
*/
void recordMipChainGeneration(const vkcv::CommandStreamHandle& cmdStream);
private:
// TODO: const qualifier removed, very hacky!!!
......
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