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
!30
Resolve "Buffer-Manager + Staging-Buffer"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Buffer-Manager + Staging-Buffer"
38-buffer-manager-staging-buffer
into
develop
Overview
0
Commits
4
Pipelines
5
Changes
8
Merged
Tobias Frisch
requested to merge
38-buffer-manager-staging-buffer
into
develop
3 years ago
Overview
0
Commits
4
Pipelines
5
Changes
6
Expand
Closes
#38 (closed)
Edited
3 years ago
by
Ghost User
0
0
Merge request reports
Compare
version 1
version 3
f5a67f17
3 years ago
version 2
39e6fc90
3 years ago
version 1
fc1a1eb6
3 years ago
develop (base)
and
version 2
latest version
cf35ba83
4 commits,
3 years ago
version 3
f5a67f17
3 commits,
3 years ago
version 2
39e6fc90
2 commits,
3 years ago
version 1
fc1a1eb6
1 commit,
3 years ago
Show latest version
6 files
+
77
−
37
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
Search (e.g. *.vue) (Ctrl+P)
include/vkcv/Buffer.hpp
+
10
−
8
Options
@@ -38,21 +38,23 @@ namespace vkcv {
m_manager
->
unmapBuffer
(
m_handle_id
);
}
static
Buffer
<
T
>
create
(
BufferManager
*
manager
,
BufferType
type
,
size_t
count
)
{
return
Buffer
<
T
>
(
manager
,
manager
->
createBuffer
(
type
,
count
*
sizeof
(
T
)),
type
,
count
);
static
Buffer
<
T
>
create
(
BufferManager
*
manager
,
BufferType
type
,
size_t
count
,
BufferMemoryType
memoryType
)
{
return
Buffer
<
T
>
(
manager
,
manager
->
createBuffer
(
type
,
count
*
sizeof
(
T
)
,
memoryType
),
type
,
count
,
memoryType
);
}
private
:
BufferManager
*
m_manager
;
uint64_t
m_handle_id
;
BufferType
m_type
;
size_t
m_count
;
BufferManager
*
const
m_manager
;
const
uint64_t
m_handle_id
;
const
BufferType
m_type
;
const
size_t
m_count
;
const
BufferMemoryType
m_memoryType
;
Buffer
<
T
>
(
BufferManager
*
manager
,
uint64_t
id
,
BufferType
type
,
size_t
count
)
:
Buffer
<
T
>
(
BufferManager
*
manager
,
uint64_t
id
,
BufferType
type
,
size_t
count
,
BufferMemoryType
memoryType
)
:
m_manager
(
manager
),
m_handle_id
(
id
),
m_type
(
type
),
m_count
(
count
)
m_count
(
count
),
m_memoryType
(
memoryType
)
{}
};
Loading