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
Merge requests
!18
Resolve "Resource Management"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Resource Management"
22-resource-management
into
develop
Overview
10
Commits
10
Pipelines
11
Changes
3
Merged
Ghost User
requested to merge
22-resource-management
into
develop
3 years ago
Overview
10
Commits
10
Pipelines
11
Changes
1
Expand
Closes
#22 (closed)
Edited
3 years ago
by
Ghost User
0
0
Merge request reports
Compare
version 1
version 10
ae06cc85
3 years ago
version 9
362702b3
3 years ago
version 8
7f5c76a8
3 years ago
version 7
911ff109
3 years ago
version 6
93f66c38
3 years ago
version 5
93f66c38
3 years ago
version 4
054ee07c
3 years ago
version 3
1a2ca2d0
3 years ago
version 2
c174222a
3 years ago
version 1
1cbb3910
3 years ago
develop (base)
and
version 2
latest version
73b27493
10 commits,
3 years ago
version 10
ae06cc85
9 commits,
3 years ago
version 9
362702b3
8 commits,
3 years ago
version 8
7f5c76a8
7 commits,
3 years ago
version 7
911ff109
6 commits,
3 years ago
version 6
93f66c38
5 commits,
3 years ago
version 5
93f66c38
5 commits,
3 years ago
version 4
054ee07c
4 commits,
3 years ago
version 3
1a2ca2d0
3 commits,
3 years ago
version 2
c174222a
2 commits,
3 years ago
version 1
1cbb3910
1 commit,
3 years ago
Show latest version
1 file
+
11
−
13
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
include/vkcv/Buffer.hpp
+
11
−
13
Options
@@ -34,26 +34,24 @@ namespace vkcv {
// explicit destruction of default constructor
Buffer
<
T
>
()
=
delete
;
// is never called directly
~
Buffer
<
T
>
()
{
~
Buffer
<
T
>
()
noexcept
{
m_Device
.
freeMemory
(
m_BufferMemory
);
m_Device
.
destroyBuffer
(
m_Buffer
);
}
//noexcept; //gibt Fehlermeldung
}
Buffer
<
T
>
(
const
Buffer
<
T
>&
other
)
=
delete
;
// copy-ctor
Buffer
<
T
>
(
Buffer
<
T
>&&
other
)
{
Buffer
<
T
>
(
Buffer
<
T
>&&
other
)
noexcept
{
other
.
m_Buffer
=
nullptr
;
other
.
m_BufferMemory
=
nullptr
;
other
.
m_Device
=
nullptr
;
other
.
m_MemoryRequirement
=
nullptr
;
other
.
m_Type
=
vkcv
::
VERTEX
;
//
other.m_MemoryRequirement = nullptr;
// WIP alternative to nullptr has to be found
other
.
m_Type
=
vkcv
::
VERTEX
;
//set to 0
other
.
m_Size
=
0
;
other
.
m_DataP
=
nullptr
;
return
*
this
;
}
//noexcept; // move-ctor
}
// move-ctor
Buffer
<
T
>&
operator
=
(
const
Buffer
<
T
>&
other
)
=
delete
;
// copy assignment
Buffer
<
T
>&
operator
=
(
Buffer
<
T
>&&
other
)
{
Buffer
<
T
>&
operator
=
(
Buffer
<
T
>&&
other
)
noexcept
{
m_Buffer
=
other
.
m_Buffer
;
m_BufferMemory
=
other
.
m_BufferMemory
;
m_Device
=
other
.
m_Device
;
@@ -65,17 +63,17 @@ namespace vkcv {
other
.
m_Buffer
=
nullptr
;
other
.
m_BufferMemory
=
nullptr
;
other
.
m_Device
=
nullptr
;
other
.
m_MemoryRequirement
=
nullptr
;
other
.
m_Type
=
vkcv
::
VERTEX
;
//
other.m_MemoryRequirement = nullptr;
// WIP alternative to nullptr has to be found
other
.
m_Type
=
vkcv
::
VERTEX
;
//set to 0
other
.
m_Size
=
0
;
other
.
m_DataP
=
nullptr
;
}
//
noexcept; //
move assignment
}
// move assignment
BufferType
getType
()
{
return
m_Type
;
};
size_t
getSize
()
{
return
m_Size
;
};
//i'm not sure what the input argument has to be, WORK IN PROGRESS
//i'm not sure what
type
the input argument has to be, WORK IN PROGRESS
//TODO
void
fill
(
void
*
data
)
{
m_DataP
=
static_cast
<
uint8_t
*>
(
m_Device
.
mapMemory
(
m_BufferMemory
,
0
,
m_MemoryRequirement
.
size
));
Loading