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
0e4d5e8a
Commit
0e4d5e8a
authored
3 years ago
by
Katharina Krämer
Browse files
Options
Downloads
Patches
Plain Diff
[
#16
][Doku] added documentation for class functions in SwapChain
parent
dc50aab2
No related branches found
No related tags found
4 merge requests
!12
Resolve "Swapchain Class"
,
!7
Resolve "Shader Program Class"
,
!5
Resolve "Pipeline State Object"
,
!4
Resolve "Renderpass Class"
Pipeline
#24732
failed
3 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/vkcv/SwapChain.hpp
+31
-5
31 additions, 5 deletions
include/vkcv/SwapChain.hpp
with
31 additions
and
5 deletions
include/vkcv/SwapChain.hpp
+
31
−
5
View file @
0e4d5e8a
...
...
@@ -9,10 +9,19 @@ namespace vkcv {
private:
vk
::
SurfaceKHR
m_surface
;
vk
::
SwapchainKHR
m_swapchain
;
vk
::
SurfaceFormatKHR
m_format
;
SwapChain
(
vk
::
SurfaceKHR
surface
,
vk
::
SwapchainKHR
swapchain
,
vk
::
SurfaceFormatKHR
format
);
vk
::
SwapchainKHR
m_swapchain
;
vk
::
SurfaceFormatKHR
m_format
;
/**
* Constructor of a SwapChain object
* glfw is not initialized in this class because ist must be sure that there exists a context first
* glfw is already initialized by the window class
* @param surface used by the swapchain
* @param context of the application
* @param swapchain to show images in the window
* @param format
*/
SwapChain
(
vk
::
SurfaceKHR
surface
,
const
vkcv
::
Context
&
context
,
vk
::
SwapchainKHR
swapchain
,
vk
::
SurfaceFormatKHR
format
);
public:
SwapChain
(
const
SwapChain
&
other
)
=
default
;
...
...
@@ -25,13 +34,30 @@ namespace vkcv {
[[
nodiscard
]]
vk
::
SwapchainKHR
getSwapchain
();
/**
* gets the current surface object
* @return current surface
*/
[[
nodiscard
]]
vk
::
SurfaceKHR
getSurface
();
/**
* gets the current surface format
* @return gets the surface format
*/
[[
nodiscard
]]
vk
::
SurfaceFormatKHR
getSurfaceFormat
();
/**
* creates a swap chain object out of the given window and the given context
* @param window a wrapper that represents a glfw window
* @param context of the application
* @return returns an object of swapChain
*/
static
SwapChain
create
(
const
Window
&
window
,
const
Context
&
context
);
/**
* Destructor of SwapChain
*/
virtual
~
SwapChain
();
};
...
...
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