Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
VkCV Framework
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Vulkan2021
VkCV Framework
Commits
b48f6de4
Commit
b48f6de4
authored
3 years ago
by
Alexander Gauggel
Browse files
Options
Downloads
Patches
Plain Diff
[
#96
] Comment public Image functions
parent
165dcc32
No related branches found
No related tags found
1 merge request
!97
Resolve "Dokumentation vervollständigen"
Pipeline
#27511
passed
3 years ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/vkcv/Image.hpp
+41
-0
41 additions, 0 deletions
include/vkcv/Image.hpp
with
41 additions
and
0 deletions
include/vkcv/Image.hpp
+
41
−
0
View file @
b48f6de4
...
...
@@ -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!!!
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment